Wrong documentation for opacity #7377
Labels
a:documentation
Improvements or additions to documentation (infrastructure and text itself) (mN,bS)
bug
Something isn't working
The docs for the
opacity
andvisible
properties contains mistake.https://docs.slint.dev/latest/docs/slint/reference/common/#opacity
Compared to the ones in 1.8: https://releases.slint.dev/1.8.0/docs/slint/src/language/builtins/elements.html
if ...:
construct) does it.Original description
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: