]> git.tdb.fi Git - libs/gltk.git/commitdiff
Properly set expand flags in LinearArrangement
authorMikko Rasa <tdb@tdb.fi>
Thu, 27 Jun 2013 13:37:33 +0000 (16:37 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 27 Jun 2013 13:37:33 +0000 (16:37 +0300)
source/lineararrangement.cpp

index 5d18cfb309423bae9a99553264d9031f5ad965e5..7769db2d64e47af8384237cc4b1eff8e80f6fc21 100644 (file)
@@ -29,7 +29,7 @@ void LinearArrangement::expand()
                throw arrangement_error("no widgets");
 
        add_constraint(*edges[primary].widgets.front(), get_align_constraint(primary), primary);
-       layout.set_expand(*edges[primary].widgets.front(), false, true);
+       layout.set_expand(*edges[primary].widgets.front(), (primary==LEFT || primary==RIGHT), (primary==TOP || primary==BOTTOM));
        edges[primary].align();
        gravity = primary;
 }