diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-08-10 13:15:26 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-08-10 13:15:26 -0300 |
commit | b9730a695643af15bd97f9b87ae656b735281bba (patch) | |
tree | 3987cd371656fd23d039c3f12905bd713e6ee8b8 /scene/gui | |
parent | c02fb271fd54ecda331968d2269af79a6007dcb1 (diff) |
Make line edit always vertically aligned, makes no sense otherwise. Fixes #17188
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/line_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 4d73ee2d56..6258f32bf3 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -642,7 +642,7 @@ void LineEdit::_notification(int p_what) { int char_ofs = window_pos; int y_area = height - style->get_minimum_size().height; - int y_ofs = style->get_offset().y; + int y_ofs = style->get_offset().y + (y_area - font->get_height()) / 2; int font_ascent = font->get_ascent(); |