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:
parent
c589f40faa
commit
34e38a835c
@ -807,7 +807,7 @@ var IconGridLayout = GObject.registerClass({
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
childBox.set_origin(x, y);
|
childBox.set_origin(Math.floor(x), Math.floor(y));
|
||||||
|
|
||||||
const [,, naturalWidth, naturalHeight] = item.get_preferred_size();
|
const [,, naturalWidth, naturalHeight] = item.get_preferred_size();
|
||||||
childBox.set_size(
|
childBox.set_size(
|
||||||
|
Loading…
Reference in New Issue
Block a user