face-hh / griddycode

A code editor made with Godot. Code has never been more lit!
Apache License 2.0
1.82k stars 115 forks source link

Code Editor Window Resizing Issue #75

Closed 010101-sans closed 8 months ago

010101-sans commented 8 months ago

Describe the bug The code editor does not auto-adjust its inner content when the window size is changed. When either the length or height of the window is larger than the other, the code editor gets cramped, failing to show consistent sizes of elements regardless of the aspect ratio of the window.

To Reproduce Steps to reproduce the behavior:

  1. Open the code editor.
  2. Change the window size, making either the length or height larger than the other.
  3. Observe the inner content of the code editor.

Expected behavior The code editor should auto-adjust its inner content to maintain consistent sizes of elements, regardless of the aspect ratio of the window. The content should not appear cramped when the window size is changed.

Screenshots

image

Desktop:

blackneeed commented 8 months ago

Face knows. If you running from godot in the window settings set aspect to keep height

face-hh commented 8 months ago

Fixed in 68d5ec4. Will be shipped in v1.2.0