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 09658f7e3b)
This commit is contained in:
Danny Chung 2022-05-27 21:25:23 -07:00 committed by Rémi Verschelde
parent 81fa4a4268
commit fd799e459f
1 changed files with 1 additions and 1 deletions

View File

@ -1562,7 +1562,7 @@ AnimationPlayerEditor::AnimationPlayerEditor(EditorNode *p_editor, AnimationPlay
frame = memnew(SpinBox); frame = memnew(SpinBox);
hb->add_child(frame); 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_stretch_ratio(2);
frame->set_step(0.0001); frame->set_step(0.0001);
frame->set_tooltip(TTR("Animation position (in seconds).")); frame->set_tooltip(TTR("Animation position (in seconds)."));