🐞 Drag-collapsing Inspector sidebar in full-screen breaks layout
Description
Dragging the Inspectors sidebar to collapse causes the main layout to break: an empty space appears in place of the collapsed sidebar. Trying to open the sidebar again causes a further layout shift, inducing the sidebar anchor placement.
To Reproduce
- Open CodeEdit
- Click on "Hide or show the Inspectors" sidebar toggle icon in the top right corner
- Drag the sidebar by the left edge (to the right) to collapse
- See the main file content area now has an empty black area on the right
Expected Behavior
Dragging the Inspectors sidebar to collapse - collapses the sidebar without breaking the main layout
Version Information
CodeEdit: 0.0.3-alpha (32) macOS: 13.3.1 Xcode: 14.3 (14E222b)
Additional Context
No response
Screenshots
https://user-images.githubusercontent.com/16290753/230754579-f4e45f9d-e473-476a-b8b2-4c81d99d5d80.mp4
This also removes width from the window when drag-collapsing not in full-screen.
This issue is caused by the current STTextView implementation, so hopefully it gets resolved once https://github.com/CodeEditApp/CodeEditTextView/pull/211 is merged.