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

Bug in calculating space to allocate, there's sometimes remaining space even though sizes total is 100 #194

Open
queen3 opened this issue Aug 18, 2023 · 0 comments

Comments

@queen3
Copy link

queen3 commented Aug 18, 2023

The method equalizeAfterAddOrRemove initializes let leftToAllocate = 0 and then subtracts as leftToAllocate -= pane.size.

This results in leftToAllocate to be always negative (usually -100) and thus it is always considered that there's something to allocate, which leads to strange cases when there's empty unallocated space (on the right).

The proper initialization is leftToAllocate = 100.

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