max-height & min-height have a weird behaviour #8618
Unanswered
Antonio225t
asked this question in
Q&A
Replies: 1 comment
-
I do have a workaround for that: // Let's wrap the VerticalLayout in a ScrollView
ScrollView {
min-height: root.expanded ? 200px : 0px;
VerticalLayout {
preferred-height: root.expanded ? 99999px : 0px;
alignment: start;
@children
}
} But it looks ugly because now I have a fixed |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have something like this:
The contents are shown regardless of
root.expanded
being true... And that seems because themax-height
property is... I don't understand how it works.That doesn't seem to be the case, is it being ignored? If so why?
Beta Was this translation helpful? Give feedback.
All reactions