aboutsummaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRémi Verschelde2017-09-04 08:10:04 +0200
committerGitHub2017-09-04 08:10:04 +0200
commitdf11de72c9943955b874df89338fb7429a4e283c (patch)
tree7b1cf9e6628ccb16b2ec31d9f070d24e1a5a592a /scene/gui
parent8ebe6d83703858d2fa5f68555855ebc0b4730e17 (diff)
parente298f931a614af94335069dc97878c09a986a478 (diff)
downloadgodot-df11de72c9943955b874df89338fb7429a4e283c.tar.gz
godot-df11de72c9943955b874df89338fb7429a4e283c.tar.zst
godot-df11de72c9943955b874df89338fb7429a4e283c.zip
Merge pull request #10932 from djrm/pr_fix_metrics
Fixed some metrics (some issues caused by the new Noto Sans font).
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/line_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp
index 66b4e6cec..6a5f56c78 100644
--- a/scene/gui/line_edit.cpp
+++ b/scene/gui/line_edit.cpp
@@ -631,7 +631,7 @@ void LineEdit::_notification(int p_what) {
if (has_icon("right_icon")) {
Ref<Texture> r_icon = Control::get_icon("right_icon");
ofs_max -= r_icon->get_width();
- r_icon->draw(ci, Point2(width - r_icon->get_width() - x_ofs, y_ofs), Color(1, 1, 1, disabled_alpha * .9));
+ r_icon->draw(ci, Point2(width - r_icon->get_width() - x_ofs, height / 2 - r_icon->get_height() / 2), Color(1, 1, 1, disabled_alpha * .9));
}
int caret_height = font->get_height() > y_area ? y_area : font->get_height();