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
{{ message }}
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
Here we have .parent flex-container with height:50vh and overflow:auto. it has two children.
in .child2 we have some .content and it's height is 100vh. so .parent is scrollable and i's scrollHeight is 100vh. issue is that height of flex-items:.child1 and .child2 will not be 100vh instead they will stay 50vh as if .parent's height is still 50vh.
workaround is to make .parent wrap by using it's ::after pseudo element as flex-item with height: 0 and width:100%.
"In a single-line flex container, the cross size of the line is the cross size of the flex container[...]." As a result, when stretch alignment gets applied to the children, they get the 50vh height. Maybe you want align-items: flex-start?
Here we have
.parent
flex-container withheight:50vh
andoverflow:auto
. it has two children.in
.child2
we have some.content
and it's height is 100vh. so.parent
is scrollable and i's scrollHeight is 100vh. issue is that height of flex-items:.child1
and.child2
will not be 100vh instead they will stay 50vh as if.parent
's height is still 50vh.workaround is to make
.parent
wrap by using it's::after
pseudo element as flex-item withheight: 0
andwidth:100%
.here is an example of it.
The text was updated successfully, but these errors were encountered: