diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-25 10:41:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-25 10:41:27 +0200 |
commit | c26f0c9bbd52ba6bd822fd6766667de2ce189485 (patch) | |
tree | 62553ee9de27b5093c8e303045a4b44ba9efa28e /scene/gui | |
parent | 778322161c37740f1d9caf67a9ea53470552a71d (diff) | |
parent | 4bca3236d1476f3b9a19e2d2c215b4fe2ac0ba7b (diff) |
Merge pull request #28377 from YeldhamDev/connection_info_script_changes
Make small changes to the new connection info on script feature
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/text_edit.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 3d36408ff3..1f498ea16e 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -965,6 +965,7 @@ void TextEdit::_notification(int p_what) { // draw info icons if (draw_info_gutter && text.has_info_icon(line)) { + int vertical_gap = (get_row_height() * 40) / 100; int horizontal_gap = (cache.info_gutter_width * 30) / 100; int gutter_left = cache.style_normal->get_margin(MARGIN_LEFT) + cache.breakpoint_gutter_width; @@ -979,8 +980,8 @@ void TextEdit::_notification(int p_what) { } Size2i icon_pos; - int xofs = horizontal_gap - (info_icon->get_width()) / 2; - int yofs = (get_row_height() - info_icon->get_height()) / 2; + int xofs = horizontal_gap - (info_icon->get_width() / 4); + int yofs = vertical_gap - (info_icon->get_height() / 4); icon_pos.x = gutter_left + xofs + ofs_x; icon_pos.y = ofs_y + yofs; |