You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I understand the docs correctly, then an element with visible: false should not take any space in a layout?
When an element has 0 opacity it will still take up layout space and any gesture handling will continue to work. If the intent is to hide an element so it has no gesture handling or no longer takes up layout space, use the visible property instead.
But this seems not to be the case. The element still takes its space in the layout. Even if the size is 0px it counts as extra element, which causes extra spacing, if defined in the layout.
Bug Description
If I understand the docs correctly, then an element with
visible: false
should not take any space in a layout?https://docs.slint.dev/latest/docs/slint/reference/common/#opacity
But this seems not to be the case. The element still takes its space in the layout. Even if the size is 0px it counts as extra element, which causes extra spacing, if defined in the layout.
Reproducible Code (if applicable)
Environment Details
Product Impact
No response
The text was updated successfully, but these errors were encountered: