[gnome-shell/gnome-3-38] iconGrid/iconGridLayout: Floor children position



commit 9426ca2877566e3427865b7d2774d806411f45c9
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>
    
    (cherry picked from commit 34e38a835c319eb4eadf5875eae11bf046e25c0e)

 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 3d1a5d6ede..72f00e5498 100644
--- a/js/ui/iconGrid.js
+++ b/js/ui/iconGrid.js
@@ -804,7 +804,7 @@ var IconGridLayout = GObject.registerClass({
                     break;
                 }
 
-                childBox.set_origin(x, y);
+                childBox.set_origin(Math.floor(x), Math.floor(y));
 
                 // Only ease icons when the page size didn't change
                 if (this._pageSizeChanged)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]