diff options
author | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2018-05-21 16:57:37 -0300 |
---|---|---|
committer | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2018-05-21 20:59:54 -0300 |
commit | e8047e56d21df0c167a180afd5913ac4a8720270 (patch) | |
tree | 6f1fb2b4c80865eeafd153f0275da56d28a0e43b | |
parent | 0980991e6433a3f394a9ae99bec10cb04c8b77e0 (diff) |
[InspectorDock] Change label offset
-rw-r--r-- | editor/editor_spin_slider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_spin_slider.cpp b/editor/editor_spin_slider.cpp index 087dcd649f..772e716991 100644 --- a/editor/editor_spin_slider.cpp +++ b/editor/editor_spin_slider.cpp @@ -173,7 +173,7 @@ void EditorSpinSlider::_notification(int p_what) { draw_style_box(sb, Rect2(Vector2(), get_size())); Ref<Font> font = get_font("font", "LineEdit"); - int avail_width = get_size().width - sb->get_minimum_size().width - sb->get_minimum_size().width; + int avail_width = get_size().width - sb->get_minimum_size().width; avail_width -= font->get_string_size(label).width; Ref<Texture> updown = get_icon("updown", "SpinBox"); |