constraints: Make internal consistency required

The relations between left, right, width
and top, bottom, height are required for
internal consistency. It doesn't make sense
to ever drop these.

Changing the strength of these relations makes
my systems behave much more stable.
This commit is contained in:
Matthias Clasen
2019-06-26 02:30:31 +00:00
parent 9a438a8bfc
commit ea8bf0fc1e

View File

@@ -219,7 +219,7 @@ get_attribute (ConstraintSolverChildData *self,
gtk_constraint_solver_add_constraint (solver,
res, GTK_CONSTRAINT_RELATION_EQ, expr,
GTK_CONSTRAINT_WEIGHT_MEDIUM);
GTK_CONSTRAINT_WEIGHT_REQUIRED);
}
break;
@@ -241,7 +241,7 @@ get_attribute (ConstraintSolverChildData *self,
gtk_constraint_solver_add_constraint (solver,
res, GTK_CONSTRAINT_RELATION_EQ, expr,
GTK_CONSTRAINT_WEIGHT_MEDIUM);
GTK_CONSTRAINT_WEIGHT_REQUIRED);
}
break;