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

cut at new layout logic for LinearLayout #614

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

TwoClocks
Copy link

This is an attempt to fix Bug #613
In theory, this code could be placed inside the desperation branch where cap is called. To fix the bug, you have to do most of the work that layout does, so it's here as a replacement for the layout code.

I wouldn't take this PR as is. I am not that familiar w/ cursive, nor rust. It likely needs some tweaking for both.
I think the algorithm is sound and generates similar (but different) results as the previous algorithm (plus bug fix). I personally think it's simpler? but that might be just because I wrote it.

If there is another / better / simpler way to address the bug in question, I'd be happy to take a stab at that w/ some guidance.

@TwoClocks
Copy link
Author

I think it would be fairly easy to update this logic to add weight support.

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.

[BUG] adding content causes views to be pushed off screen.
1 participant