X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmixedrows.cpp;h=763702057c65429e8114ff6643520622923612d3;hb=7a0f255ecf23391f09488ac54fb9b1124827dfa7;hp=bfcf6219c0b75660c12d5d564c4290d6dd8b78b9;hpb=a7776a50f9c3bf8d3a61af56f6d11b0721209582;p=libs%2Fgltk.git diff --git a/source/mixedrows.cpp b/source/mixedrows.cpp index bfcf621..7637020 100644 --- a/source/mixedrows.cpp +++ b/source/mixedrows.cpp @@ -43,8 +43,7 @@ Layout::Slot *MixedRows::create_slot(Widget &wdg) if(!first) { Slot *prev = slots.back(); - if(!hsplit) - slot->constraints.push_back(Constraint(RIGHT_OF, *prev)); + slot->constraints.push_back(Constraint((hsplit ? FAR_RIGHT_OF : RIGHT_OF), *prev)); slot->constraints.push_back(Constraint(ALIGN_TOP, *prev)); slot->constraints.push_back(Constraint(ALIGN_BOTTOM, *prev)); if(uniform_cols) @@ -53,8 +52,7 @@ Layout::Slot *MixedRows::create_slot(Widget &wdg) else if(!slots.empty()) { Slot *prev = slots.back(); - if(!vsplit) - slot->constraints.push_back(Constraint(BELOW, *prev)); + slot->constraints.push_back(Constraint((vsplit ? FAR_BELOW : BELOW), *prev)); if(uniform_rows) slot->constraints.push_back(Constraint(COPY_HEIGHT, *prev)); }