From 4acbe9feda160546d0afd43fbdef3f00db6dcea7 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 26 Aug 2016 00:23:05 +0300 Subject: [PATCH] Make sure gravity can't overpower expand --- source/layout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.43.0