Skip to content

Vertical scrollbars when putting a Vertical layout into Collapsible instead of the widget directly #4917

Answered by willmcgugan
kostrykin asked this question in Q&A
Discussion options

You must be logged in to vote

You can swap your Vertical for a VerticalScroll.

As for your original issue, the Collapsible has children of its own for the title and contents. If you want to add something to the contents, I think the following should work:

self.query_one('#collapsible > Contents').mount(Label('line of text 2'))

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@TomJGooding
Comment options

@kostrykin
Comment options

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