diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-06-29 22:20:20 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-07-01 01:49:20 +0000 |
commit | c88e7c180d33cb3a67ce19b3ce4e01657bb6e443 (patch) | |
tree | 7df35d03d89e7d46421fa9fa8eae4295f55a9a75 /gtk/gtkconstraintlayout.c | |
parent | 2aabd64f1a90bec857c35135df6e3cf9d668bbfb (diff) | |
download | gtk+-c88e7c180d33cb3a67ce19b3ce4e01657bb6e443.tar.gz |
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.
Diffstat (limited to 'gtk/gtkconstraintlayout.c')
-rw-r--r-- | gtk/gtkconstraintlayout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkconstraintlayout.c b/gtk/gtkconstraintlayout.c index 18bb98f788..4339630c21 100644 --- a/gtk/gtkconstraintlayout.c +++ b/gtk/gtkconstraintlayout.c @@ -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) |