Skip to content

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