[gnome-shell] iconGrid/iconGridLayout: Floor children position
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] iconGrid/iconGridLayout: Floor children position
- Date: Tue, 1 Dec 2020 19:01:46 +0000 (UTC)
commit 34e38a835c319eb4eadf5875eae11bf046e25c0e
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Nov 26 18:07:39 2020 -0300
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>
js/ui/iconGrid.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js
index e3c232105a..7275a6a41a 100644
--- a/js/ui/iconGrid.js
+++ b/js/ui/iconGrid.js
@@ -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(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]