mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
dash: Allow icon sizes equal to the available space
When checking for a suitable icon size, Dash currently checks which of the hardcoded icon sizes is smaller than the calculated available size. On some circumstances, however, when the calculated available size is exactly equal to the hardcoded icon sizes, Dash selects a smaller size. This cascades (the next icon size is exactly the smaller size, etc) and ends up with always Dash selecting smallest size available, even with plenty of available space. Check if the calculated available size is smaller or equal to the hardcoded icon sizes. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1533>
This commit is contained in:
parent
99b78d3ee8
commit
e3542d5849
1 changed files with 1 additions and 1 deletions
|
|
@ -597,7 +597,7 @@ var Dash = GObject.registerClass({
|
|||
|
||||
let newIconSize = baseIconSizes[0];
|
||||
for (let i = 0; i < iconSizes.length; i++) {
|
||||
if (iconSizes[i] < availSize)
|
||||
if (iconSizes[i] <= availSize)
|
||||
newIconSize = baseIconSizes[i];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue