macos_ui icon indicating copy to clipboard operation
macos_ui copied to clipboard

Resizable pane constraints aren't respected when side bar is visible

Open Andrewngabriel opened this issue 2 years ago • 4 comments

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

  1. Open the example app and click on Buttons tab
  2. Click on the navigation toggle button on the top right hand corner
  3. Try resizing the left pane all the way to its maximum size
  4. Toggle on the navigation bar
  5. 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

Andrewngabriel avatar Apr 17 '22 16:04 Andrewngabriel

@whiplashoo do you know if this behavior is expected for native macOS applications that have multiple resizable panes?

GroovinChip avatar Apr 29 '22 20:04 GroovinChip

I am not sure. I could try implementing this in a native app to see how it behaves.

whiplashoo avatar Apr 30 '22 07:04 whiplashoo

I am not sure. I could try implementing this in a native app to see how it behaves.

That would be great, thank you.

GroovinChip avatar May 01 '22 16:05 GroovinChip

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?

GroovinChip avatar Oct 07 '22 14:10 GroovinChip