Skip to content
Discussion options

You must be logged in to vote

It's going to depend on how you size ItemsView. By default Widget has no specified height and so, I believe, it'll use up the whole of the container. Your ItemsView is inheriting from Widget. You don't show what's in your stylesheet but if you've not given a height for ItemsView you're seeing what I'd expect you to see.

As an example, if I take your code and add this to the styles:

ItemsView {
    height: 1fr;
}

Then each ItemsView added ends up taking up an equal share of the vertical space.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@femin-kk
Comment options

@davep
Comment options

@femin-kk
Comment options

Answer selected by davep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants