forked from AuroraMiddleware/gtk
constraint layout: Use stronger force for min size
We want our edit constraint to be strong enough to overpower nat. size constraint, therefore use STRONG * 2.
This commit is contained in:
parent
2aabd64f1a
commit
c88e7c180d
@ -791,9 +791,9 @@ gtk_constraint_layout_measure (GtkLayoutManager *manager,
|
||||
* natural state of the system. Once we get the value out, we can
|
||||
* remove these constraints
|
||||
*/
|
||||
gtk_constraint_solver_add_edit_variable (solver, size, GTK_CONSTRAINT_WEIGHT_STRONG);
|
||||
gtk_constraint_solver_add_edit_variable (solver, size, GTK_CONSTRAINT_WEIGHT_STRONG * 2);
|
||||
if (for_size > 0)
|
||||
gtk_constraint_solver_add_edit_variable (solver, opposite_size, GTK_CONSTRAINT_WEIGHT_STRONG);
|
||||
gtk_constraint_solver_add_edit_variable (solver, opposite_size, GTK_CONSTRAINT_WEIGHT_STRONG * 2);
|
||||
gtk_constraint_solver_begin_edit (solver);
|
||||
gtk_constraint_solver_suggest_value (solver, size, 0.0);
|
||||
if (for_size > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user