gnome-shell/js
Jonas Dreßler 8f0e9abe47 iconGrid: Make sure the style is updated before computing the layout
In some cases the style-changed signal hasn't been emitted when
_computeLayout() is called, resulting in the use of the default spacing
and item size values for the calculations.

One case where this happens is when starting a search. Right after the
initialization of GridSearchResults, _computeLayout() is called from
_getMaxDisplayedResults() and the style-changed signal hasn't been
emitted yet. The computed layout will be wrong and the maximum
number of results will also be wrong.

To prevent this from happening, make sure the style has been updated
before doing the calculations in _computeLayout().

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/110
2019-07-15 23:00:34 +00:00
..
extensionPrefs cleanup: Prefer template strings 2019-07-05 11:32:31 +00:00
gdm cleanup: Prefer template strings 2019-07-05 11:32:31 +00:00
misc cleanup: Use default parameters where appropriate 2019-07-12 18:54:49 +00:00
perf cleanup: Prefer template strings 2019-07-05 11:32:31 +00:00
portalHelper style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
ui iconGrid: Make sure the style is updated before computing the layout 2019-07-15 23:00:34 +00:00
js-resources.gresource.xml accessibility: Add pointer accessibility support 2019-06-06 09:13:29 +02:00
meson.build build: Use dedicated resources for helper programs 2018-08-14 17:28:04 +00:00
portal-resources.gresource.xml build: Include params.js in portal-helper gresources 2018-10-23 15:38:31 +00:00
prefs-resources.gresource.xml build: Use dedicated resources for helper programs 2018-08-14 17:28:04 +00:00