From 429d3469fde106a10045699d7d07adf20aa83685 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sat, 1 Jun 2024 18:29:38 +0300 Subject: [PATCH] Fix issue with layers on the timeline having the wrong size on Greek --- src/UI/Timeline/AnimationTimeline.gd | 3 ++- src/UI/Timeline/AnimationTimeline.tscn | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/UI/Timeline/AnimationTimeline.gd b/src/UI/Timeline/AnimationTimeline.gd index ec4be421a..3d60f679e 100644 --- a/src/UI/Timeline/AnimationTimeline.gd +++ b/src/UI/Timeline/AnimationTimeline.gd @@ -127,7 +127,8 @@ func _ready() -> void: func _notification(what: int) -> void: if what == NOTIFICATION_DRAG_END: drag_highlight.hide() - elif what == NOTIFICATION_THEME_CHANGED: + elif what == NOTIFICATION_THEME_CHANGED or what == NOTIFICATION_TRANSLATION_CHANGED: + await get_tree().process_frame if is_instance_valid(layer_settings_container): layer_container.custom_minimum_size.x = layer_settings_container.size.x + 12 diff --git a/src/UI/Timeline/AnimationTimeline.tscn b/src/UI/Timeline/AnimationTimeline.tscn index 5b52aa527..7676e906d 100644 --- a/src/UI/Timeline/AnimationTimeline.tscn +++ b/src/UI/Timeline/AnimationTimeline.tscn @@ -378,6 +378,7 @@ stretch_mode = 3 [node name="LayerFX" type="Button" parent="TimelineContainer/TimelineButtons/LayerTools/MarginContainer/LayerSettingsContainer/LayerButtons" groups=["UIButtons"]] custom_minimum_size = Vector2(24, 24) layout_mode = 2 +size_flags_horizontal = 3 size_flags_vertical = 4 mouse_default_cursor_shape = 2