Closed metalinspired closed 8 months ago
If this is intended behaviour it should be documented. The button does not render properly in following snippet.
import { Button, VerticalBox , HorizontalBox} from "std-widgets.slint"; export component Demo { HorizontalBox { Rectangle { if (true) : VerticalLayout { Button { height: 50px; width: 50px; text: "OK!"; } } } } }
If you remove if (true) : it will render fine.
if (true) :
Kubuntu 23.04 Slint 1.1
Thanks for reporting. This is already known https://github.com/slint-ui/slint/issues/407#issuecomment-897681718 but sadly not trivial to fix
Duplicate of #407
If this is intended behaviour it should be documented. The button does not render properly in following snippet.
If you remove
if (true) :
it will render fine.Kubuntu 23.04 Slint 1.1