iconGrid/iconGridLayout: Floor children position

So that we don't end up with positions misaligned from the pixel grid.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1510>
This commit is contained in:
Georges Basile Stavracas Neto 2020-11-26 18:07:39 -03:00 committed by Marge Bot
parent c589f40faa
commit 34e38a835c

View File

@ -807,7 +807,7 @@ var IconGridLayout = GObject.registerClass({
break;
}
childBox.set_origin(x, y);
childBox.set_origin(Math.floor(x), Math.floor(y));
const [,, naturalWidth, naturalHeight] = item.get_preferred_size();
childBox.set_size(