From 74900302bd1ac01574d7dc4ad04274e9c255808c Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 2 Oct 2020 14:50:33 +0200 Subject: [PATCH] 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. --- sixtyfps_compiler/widgets/ugly/sixtyfps_widgets.60 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sixtyfps_compiler/widgets/ugly/sixtyfps_widgets.60 b/sixtyfps_compiler/widgets/ugly/sixtyfps_widgets.60 index cd1b606b1..5603ba1fe 100644 --- a/sixtyfps_compiler/widgets/ugly/sixtyfps_widgets.60 +++ b/sixtyfps_compiler/widgets/ugly/sixtyfps_widgets.60 @@ -47,8 +47,8 @@ export CheckBox := Rectangle { property text; property checked; - maximum_height: 40lx; - minimum_height: 40lx; + maximum_height: 20lx; + minimum_height: 20lx; minimum_width: 120lx; // the check box iteself