CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

🐞 Drag-collapsing Inspector sidebar in full-screen breaks layout

Open Moshyfawn opened this issue 2 years ago • 2 comments

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

  1. Open CodeEdit
  2. Click on "Hide or show the Inspectors" sidebar toggle icon in the top right corner
  3. Drag the sidebar by the left edge (to the right) to collapse
  4. 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

Moshyfawn avatar Apr 09 '23 04:04 Moshyfawn

This also removes width from the window when drag-collapsing not in full-screen.

austincondiff avatar Jun 11 '23 04:06 austincondiff

This issue is caused by the current STTextView implementation, so hopefully it gets resolved once https://github.com/CodeEditApp/CodeEditTextView/pull/211 is merged.

armartinez avatar Nov 06 '23 14:11 armartinez