From: Mikko Rasa Date: Thu, 25 Aug 2016 21:23:05 +0000 (+0300) Subject: Make sure gravity can't overpower expand X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=4acbe9feda160546d0afd43fbdef3f00db6dcea7;p=libs%2Fgltk.git Make sure gravity can't overpower expand --- diff --git a/source/layout.cpp b/source/layout.cpp index b4cd768..4048e11 100644 --- a/source/layout.cpp +++ b/source/layout.cpp @@ -362,7 +362,7 @@ void Layout::solve_constraints(int dir, SolveMode mode) columns of a widget are its position and dimension, respectively. The remaining three are slack columns; see below for their purposes. */ LinearProgram linprog(n_active_slots*5+n_slack_vars[dir]+1); - float weight = slots.size(); + float weight = slots.size()+1; unsigned k = n_active_slots*5; for(list::iterator i=slots.begin(); i!=slots.end(); ++i) {