]> git.tdb.fi Git - libs/gltk.git/commitdiff
Set expand flag in Row and Column layouts on all widgets
authorMikko Rasa <tdb@tdb.fi>
Tue, 4 Jun 2013 19:13:31 +0000 (22:13 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 4 Jun 2013 19:13:31 +0000 (22:13 +0300)
source/column.cpp
source/row.cpp

index 5b86660dd21d56f1c4a174b96cbf229ebeb0607f..3a7a149f98ebce3a524cfd25538883d64cb75108 100644 (file)
@@ -19,8 +19,8 @@ Layout::Slot *Column::create_slot(Widget &w)
                slot->constraints.push_back(Constraint(ALIGN_RIGHT, prev));
                if(uniform)
                        slot->constraints.push_back(Constraint(COPY_HEIGHT, prev));
-               slot->horiz_pack.expand = true;
        }
+       slot->horiz_pack.expand = true;
 
        return slot;
 }
index 30e181188a44090d39d67abf828dae8efa1509ec..8eb6bd4ac70444679b65cb843427c505a841ca36 100644 (file)
@@ -19,8 +19,8 @@ Layout::Slot *Row::create_slot(Widget &w)
                slot->constraints.push_back(Constraint(ALIGN_BOTTOM, prev));
                if(uniform)
                        slot->constraints.push_back(Constraint(COPY_WIDTH, prev));
-               slot->vert_pack.expand = true;
        }
+       slot->vert_pack.expand = true;
 
        return slot;
 }