From 3bbdecc6b328d7988a488f0e78af1ee1822e2d76 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Fri, 25 Mar 2011 18:40:38 -0400 Subject: [PATCH] popupMenu: round spacing to an integer StThemeNode.get_length() doesn't necessarily return an integer pixel value, and our code produces non-integer positions in that case. So round the spacing. https://bugzilla.gnome.org/show_bug.cgi?id=645647 --- js/ui/popupMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index fc6140569..99e7a336d 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -61,7 +61,7 @@ PopupBaseMenuItem.prototype = { }, _onStyleChanged: function (actor) { - this._spacing = actor.get_theme_node().get_length('spacing'); + this._spacing = Math.round(actor.get_theme_node().get_length('spacing')); }, _onButtonReleaseEvent: function (actor, event) {