Skip to content

Allow user to specify different min-sizes for each side of a Split.#1370

Merged
cmyr merged 2 commits intolinebender:masterfrom
bheisler:Split-min-size
Nov 4, 2020
Merged

Allow user to specify different min-sizes for each side of a Split.#1370
cmyr merged 2 commits intolinebender:masterfrom
bheisler:Split-min-size

Conversation

@bheisler
Copy link
Contributor

@bheisler bheisler commented Nov 3, 2020

Right now the Split widget only accepts a single "min_size: f64" value which is applied to both halves of the split. In situations where the two child widgets have different min-sizes, the user has no way to specify this, leading to one component being overlarge or the other sometimes forced off the edge of the Split widget. This patch modifies the relevant functions to accept separate min-size values for the two child widgets.

Copy link
Collaborator

@Zarenor Zarenor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks straightforward, and like the easy way to do this.
Thanks!

@cmyr cmyr merged commit 6c9f394 into linebender:master Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants