Browse Source

Merge pull request #19091 from guilhermefelipecgs/fix_ui

[InspectorDock] Change label offset
Max Hilbrunner 7 years ago
parent
commit
f312b01ccd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/editor_spin_slider.cpp

+ 1 - 1
editor/editor_spin_slider.cpp

@@ -162,7 +162,7 @@ void EditorSpinSlider::_notification(int p_what) {
 		draw_style_box(sb, Rect2(Vector2(), get_size()));
 		draw_style_box(sb, Rect2(Vector2(), get_size()));
 		Ref<Font> font = get_font("font", "LineEdit");
 		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;
 		avail_width -= font->get_string_size(label).width;
 		Ref<Texture> updown = get_icon("updown", "SpinBox");
 		Ref<Texture> updown = get_icon("updown", "SpinBox");