From 0ba78201aef50bbdb484cc8b8188930536cf7e54 Mon Sep 17 00:00:00 2001 From: Danny Chung Date: Fri, 27 May 2022 21:25:23 -0700 Subject: [PATCH] Increase AnimationPlayer position SpinBox to fit more decimals Fixed UI bug where it appeared that pushing the up or down incrementing arrows did not increment the SpinBox value appropriately. Just needed to increase the size of the box horizontally, to display four decimal points consistently. (cherry picked from commit 09658f7e3ba7ffc87ae9f90aa42f64dfeeb33f40) --- editor/plugins/animation_player_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/animation_player_editor_plugin.cpp b/editor/plugins/animation_player_editor_plugin.cpp index c716738c5d0..1fe37e77586 100644 --- a/editor/plugins/animation_player_editor_plugin.cpp +++ b/editor/plugins/animation_player_editor_plugin.cpp @@ -1597,7 +1597,7 @@ AnimationPlayerEditor::AnimationPlayerEditor(EditorNode *p_editor, AnimationPlay frame = memnew(SpinBox); hb->add_child(frame); - frame->set_custom_minimum_size(Size2(60, 0)); + frame->set_custom_minimum_size(Size2(80, 0) * EDSCALE); frame->set_stretch_ratio(2); frame->set_step(0.0001); frame->set_tooltip(TTR("Animation position (in seconds)."));