summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2018-07-12 05:12:35 +0200
committerGitHub <noreply@github.com>2018-07-12 05:12:35 +0200
commitf312b01ccd5b6dd9bd7a8c9b1ca1f02e0f444a04 (patch)
tree333fcd3829ac7be18f9e2fc7044942c3c244845b
parent118d4f311516e678cb2d0a6565e1d8626f5e8815 (diff)
parente8047e56d21df0c167a180afd5913ac4a8720270 (diff)
Merge pull request #19091 from guilhermefelipecgs/fix_ui
[InspectorDock] Change label offset
-rw-r--r--editor/editor_spin_slider.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_spin_slider.cpp b/editor/editor_spin_slider.cpp
index f212b60c8c..c7a33de3f1 100644
--- a/editor/editor_spin_slider.cpp
+++ b/editor/editor_spin_slider.cpp
@@ -162,7 +162,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");