[recipes/inline-editing] Cosmetics



commit f92f2f59030ae7bfb11188aeac82ff41c01c80ef
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Apr 26 22:55:50 2017 -0400

    Cosmetics
    
    Set up margins to avoid the text moving around when switching
    from label to entry.

 src/gr-ingredients-viewer-row.ui |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-ingredients-viewer-row.ui b/src/gr-ingredients-viewer-row.ui
index ddd31c0..d9f6cd7 100644
--- a/src/gr-ingredients-viewer-row.ui
+++ b/src/gr-ingredients-viewer-row.ui
@@ -16,6 +16,8 @@
                 <property name="visible">1</property>
                 <property name="xalign">0</property>
                 <property name="width-chars">10</property>
+                <property name="margin-start">9</property>
+                <property name="margin-end">9</property>
                 <style>
                   <class name="dim-label"/>
                 </style>
@@ -30,6 +32,8 @@
                 <property name="xalign">0</property>
                 <property name="placeholder-text" translatable="yes">Amount</property>
                 <property name="width-chars">10</property>
+                <property name="margin-top">4</property>
+                <property name="margin-bottom">4</property>
                 <signal name="activate" handler="save_row" swapped="yes"/>
               </object>
               <packing>
@@ -46,6 +50,8 @@
                 <property name="visible">1</property>
                 <property name="xalign">0</property>
                 <property name="width-chars">20</property>
+                <property name="margin-start">9</property>
+                <property name="margin-end">9</property>
               </object>
               <packing>
                 <property name="name">ingredient_label</property>
@@ -57,6 +63,8 @@
                 <property name="xalign">0</property>
                 <property name="width-chars">20</property>
                 <property name="placeholder-text" translatable="yes">Ingredient</property>
+                <property name="margin-top">4</property>
+                <property name="margin-bottom">4</property>
                 <signal name="activate" handler="save_row" swapped="yes"/>
               </object>
               <packing>


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