Anim Editor: made the window height depend on the monitor's height

This commit is contained in:
Maruno17
2024-05-06 00:46:02 +01:00
parent 8aacfe491f
commit 34741ea840
2 changed files with 8 additions and 3 deletions

View File

@@ -9,6 +9,8 @@ class AnimationEditor
BORDER_THICKNESS = 4
WINDOW_WIDTH = Settings::SCREEN_WIDTH + 352 + (BORDER_THICKNESS * 4)
WINDOW_HEIGHT = Settings::SCREEN_HEIGHT + 424 + (BORDER_THICKNESS * 4)
WINDOW_HEIGHT = [WINDOW_HEIGHT, Graphics.display_height - 100].min
WINDOW_HEIGHT = [WINDOW_HEIGHT, Settings::SCREEN_HEIGHT + 266 + (BORDER_THICKNESS * 4)].max
# Components
MENU_BAR_WIDTH = WINDOW_WIDTH