From: Mikko Rasa Date: Thu, 27 Jun 2013 13:37:33 +0000 (+0300) Subject: Properly set expand flags in LinearArrangement X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=a4d18206b6352b3240ad9697aed10e2066d160bd;p=libs%2Fgltk.git Properly set expand flags in LinearArrangement --- diff --git a/source/lineararrangement.cpp b/source/lineararrangement.cpp index 5d18cfb..7769db2 100644 --- a/source/lineararrangement.cpp +++ b/source/lineararrangement.cpp @@ -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; }