Skip to content
Discussion options

You must be logged in to vote

Unfortunately, this might not be possible to have that in a generic way right now because the @children cannot do that. Improved support of @children is tracked in issue #6258

Splitter is also hard to do.
We have an example in our code with 3 widgets here:

property <float> ratio1: 0.5;
property <float> ratio2: 0.5;
property <int> widget-count: (properties-widget ? 1 : 0) + (outline-widget ? 1 : 0) + (data-widget ? 1 : 0);
property <length> splitter-height: 3px;
property <length> usable-height: self.height - (widget-count - 1) * splitter-height;
property <float> min-ratio: 3 * ConsoleStyles.…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Firemanpl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants