[recipes] Don't scroll the ingredients list grow



commit fdc78666c974f010c4c07811c9da5e1a1b2ddd5c
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Dec 17 08:17:47 2016 -0500

    Don't scroll the ingredients list grow
    
    This matches what we do on the details page, and seems right
    since the ingredients are the most important thing here, we
    should hide them behind a small viewport.

 src/gr-edit-page.ui |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/src/gr-edit-page.ui b/src/gr-edit-page.ui
index 9558fba..f686592 100644
--- a/src/gr-edit-page.ui
+++ b/src/gr-edit-page.ui
@@ -225,8 +225,9 @@
                     <child>
                       <object class="GtkScrolledWindow">
                         <property name="visible">1</property>
-                        <property name="shadow-type">in</property>
-                        <property name="min-content-height">240</property>
+                        <property name="shadow-type">none</property>
+                        <property name="hscrollbar-policy">never</property>
+                        <property name="vscrollbar-policy">never</property>
                         <child>
                           <object class="GtkListBox" id="ingredients_list">
                             <property name="visible">1</property>
@@ -242,11 +243,12 @@
                             <child type="placeholder">
                               <object class="GtkLabel">
                                 <property name="visible">1</property>
-                                <property name="margin-start">40</property>
-                                <property name="margin-end">40</property>
+                                <property name="margin-start">20</property>
+                                <property name="margin-end">20</property>
                                 <property name="margin-top">10</property>
                                 <property name="margin-bottom">10</property>
-                                <property name="xalign">0</property>
+                                <property name="halign">fill</property>
+                                <property name="xalign">0.5</property>
                                 <property name="label" translatable="yes">No ingredients added yet</property>
                                 <style> <class name="dim-label"/> </style>
                               </object>


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