Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stretch model (usage of excess space) #349

Open
dhardy opened this issue Aug 17, 2022 · 0 comments
Open

Stretch model (usage of excess space) #349

dhardy opened this issue Aug 17, 2022 · 0 comments

Comments

@dhardy
Copy link
Collaborator

dhardy commented Aug 17, 2022

Consider modifying Stretch and SizeRules::solve_seq.

Status quo: a few named Stretch levels; only widgets of the highest level get extra space (excess is split evenly).

Possible alternative: use numeric Stretch levels (up to some maximum). Use exponential weighting: base ^ level for some base; divide up excess space according to these weights and have solve_seq progressively move towards these targets (but such that widths are only shrunk or grown by a single call; no direct redistribution).

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

No branches or pull requests

1 participant