You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Reverted a PR i don't understand how to find but fixes #5097
This commit is contained in:
@@ -454,7 +454,7 @@ void LineEdit::_notification(int p_what) {
|
|||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ofs_max=width-style->get_minimum_size().width+x_ofs;
|
int ofs_max=width-style->get_minimum_size().width;
|
||||||
int char_ofs=window_pos;
|
int char_ofs=window_pos;
|
||||||
|
|
||||||
int y_area=height-style->get_minimum_size().height;
|
int y_area=height-style->get_minimum_size().height;
|
||||||
@@ -799,8 +799,8 @@ Size2 LineEdit::get_minimum_size() const {
|
|||||||
Ref<Font> font=get_font("font");
|
Ref<Font> font=get_font("font");
|
||||||
|
|
||||||
Size2 min=style->get_minimum_size();
|
Size2 min=style->get_minimum_size();
|
||||||
min+=font->get_string_size(this->text);
|
min.height+=font->get_height();
|
||||||
|
min.width+=get_constant("minimum_spaces")*font->get_char_size(' ').x;
|
||||||
return min;
|
return min;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user