From 6c677bb0e9ac6330dfde17cf0ff1c5154a04b2c3 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 8 Jul 2016 00:54:16 -0300 Subject: [PATCH] mouse: center horizontally using halign property The Mouse & Touchpad panel has a horizontally centered list, which is centered pixel-counting the list width and hardcoded margins. This approach has various issues. It resizes the window needlessly when e.g. the font changes the size, dpi or family. This is specially visible when dealing with low resolution screens, where the hardcoded margins are too much to fit a 720x480 screen with the Large Font accessibility setting on. Fix that by removing the margins and setting the horizontal alignment of the list to center. Since the list itself doesn't expand to fill the available space, there won't be any user- visible changes except that the panel is now able to scale down. https://bugzilla.gnome.org/show_bug.cgi?id=768529 --- panels/mouse/gnome-mouse-properties.ui | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/panels/mouse/gnome-mouse-properties.ui b/panels/mouse/gnome-mouse-properties.ui index 40ef3a9ca..db058ec05 100644 --- a/panels/mouse/gnome-mouse-properties.ui +++ b/panels/mouse/gnome-mouse-properties.ui @@ -26,8 +26,7 @@ True False - 134 - 134 + center 12 12 vertical