macos_ui
macos_ui copied to clipboard
Resizable pane constraints aren't respected when side bar is visible
Description
I've noticed some weird behavior with resizable pane where if you have the sidebar opened and try to resize one of the panes, it doesn't respect the minimum width of other panes that have minimum width set.
I've attached a video below showing this in more detail. You could see that the behavior isn't very consistent.
Steps To Reproduce
- Open the example app and click on Buttons tab
- Click on the navigation toggle button on the top right hand corner
- Try resizing the left pane all the way to its maximum size
- Toggle on the navigation bar
- Try step 3 again and you should see the right hand tab going off the screen/window
Expected behavior
Resizable pane when combined in the same view, should respect each other's constraints in order to avoid panes going off the screen/window.
Screenshots
https://user-images.githubusercontent.com/11186948/163723368-d06765d1-c700-4ce1-b3b2-30e5cc4079f7.mov
@whiplashoo do you know if this behavior is expected for native macOS applications that have multiple resizable panes?
I am not sure. I could try implementing this in a native app to see how it behaves.
I am not sure. I could try implementing this in a native app to see how it behaves.
That would be great, thank you.
I am not sure. I could try implementing this in a native app to see how it behaves.
were you ever able to do this?