[gnome-control-center] mouse: set max-content-height on scrolledwindows



commit 62f1f6bb23b23b59c5c5fa845953ff1b824bc0c2
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Jul 8 00:51:27 2016 -0300

    mouse: set max-content-height on scrolledwindows
    
    Instead of using only hardcoded height requests, it's better
    if we give more flexibility for the content to grow up to
    a certain amount of pixels.
    
    Also, this patch slightly reduces the maximum size by 20px, so
    that in the tested scenario (Adwaita with Large Font settings on)
    the panel is still able to size down.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=768529

 panels/mouse/gnome-mouse-properties.ui |    2 +-
 panels/mouse/gnome-mouse-test.ui       |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/mouse/gnome-mouse-properties.ui b/panels/mouse/gnome-mouse-properties.ui
index f2622a1..40ef3a9 100644
--- a/panels/mouse/gnome-mouse-properties.ui
+++ b/panels/mouse/gnome-mouse-properties.ui
@@ -21,7 +21,7 @@
     <property name="can_focus">True</property>
     <property name="shadow_type">none</property>
     <property name="hscrollbar_policy">never</property>
-    <property name="height_request">460</property>
+    <property name="max_content_height">440</property>
     <child>
       <object class="GtkBox" id="prefs_widget">
         <property name="visible">True</property>
diff --git a/panels/mouse/gnome-mouse-test.ui b/panels/mouse/gnome-mouse-test.ui
index eed9283..911d635 100644
--- a/panels/mouse/gnome-mouse-test.ui
+++ b/panels/mouse/gnome-mouse-test.ui
@@ -41,6 +41,7 @@
             <property name="hscrollbar_policy">never</property>
             <property name="vscrollbar_policy">always</property>
             <property name="shadow_type">in</property>
+            <property name="max_content_height">440</property>
             <child>
               <object class="GtkViewport" id="viewport">
                 <property name="visible">True</property>


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