mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
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:
parent
56d763cdcf
commit
74900302bd
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue