gnome-shell/js
Georges Basile Stavracas Neto 4863c498b2 iconGrid/iconGridLayout: Make sure to always update best size
When selecting the best icon size for the available area, we
iterate from the biggest icon size to the smallest one, and
stop when finding a size that fits the available area.

However, the 'bestSize' variable is only updated when the
available area is positive. This is problematic in super bad
cases like when none of the icon sizes actually fit the availabe
area, which was hit with a previous iteration of this branch.

Make sure to update the best size while iterating, so that the
smallest size is selected even in such bad cases.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1510>
2020-12-01 18:57:49 +00:00
..
dbusServices cleanup: Remove empty leading/trailing lines in blocks 2020-11-16 18:04:23 +00:00
gdm credentialManager: Shut up a JS warning 2020-11-26 14:17:26 +01:00
misc cleanup: Remove empty leading/trailing lines in blocks 2020-11-16 18:04:23 +00:00
perf perf: Add basic run tests 2020-08-12 15:43:39 +00:00
portalHelper js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
ui iconGrid/iconGridLayout: Make sure to always update best size 2020-12-01 18:57:49 +00:00
js-resources.gresource.xml perf: Add basic run tests 2020-08-12 15:43:39 +00:00
meson.build extensions-app: Move Extensions app to new subproject 2020-03-27 23:33:30 +00:00
portal-resources.gresource.xml js: Remove unused files from resources 2020-03-09 13:18:48 +00:00