Fix CheckBox height in the ugly style

With the previous grid layout implementation the checkbox minimum/maximum height of 40lx
was ignored in the todo app and instead it was
rendered using 20lx, which looks fine.

With the stretch layout the outer constraint of 20lx and the inner constraint of 40lx
create an impossible situation where eventually the
checkboxes in todo get misplaced.
This commit is contained in:
Simon Hausmann 2020-10-02 14:50:33 +02:00
parent 56d763cdcf
commit 74900302bd

View file

@ -47,8 +47,8 @@ export CheckBox := Rectangle {
property <string> text;
property <bool> checked;
maximum_height: 40lx;
minimum_height: 40lx;
maximum_height: 20lx;
minimum_height: 20lx;
minimum_width: 120lx;
// the check box iteself