-
Notifications
You must be signed in to change notification settings - Fork 19
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 when hiding splitview while using minimum fractions #31
Comments
To be clear: when I remove the minPFraction property, it works. So it looks like setting a minimum fraction is incompatible with hiding a split. |
Yes, see #30 for some details. Thanks for this and the other report. I am hoping to work on the open issues this week. |
This should be fixed with #33. Also, thanks to your suggestion, I added As a result, though, your example showing the problem now looks like this for me:
and works properly. Note that per #30, the splitter is completely hidden (currently by design) when the |
Hi,
I'm using a simple horizontal split set up like this:
When I click hide to toggle hiding the left split it hides but the whole split narrows in width revealing the content below the split view on the right side:
Screen.Recording.2023-12-10.at.15.51.51.mov
On hiding the left split seems to resize to minPFraction. And when hiding by dragging to the left, that hidden state seems not to be in sync with whatever .hide() is using as clicking the hide button doesn't unhide the left split, but does what looks like another hide operation.
Is there something obvious I am missing? :)
Thanks!
PS
As an aside: it was a bit confusing to get the left split to hide! hide.toggle() always hides the right view, regardless of which one has priority (I expect in most scenario's the split having priority is the one to be hidden -- but I could be wrong). I did get it to work with the code above, but IMHO an API like .toggle(.left) would be cleaner.
The text was updated successfully, but these errors were encountered: