diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-07-06 11:14:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-06 11:14:10 +0200 |
commit | 0b6b49a897b35bec53765e1288c32d57afa1a293 (patch) | |
tree | d38390252de29781d7cf9d484029587fed088973 | |
parent | a7bf187da7ad2e87785fe4bec69ca9973874945c (diff) | |
parent | 4afb31cd5208e5c21dcac32d962dbc8002fed192 (diff) |
Merge pull request #30370 from GodotExplorer/fix-30365
Fix light area position in the selected completion
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 9242e7997a..a7b4e08553 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -1403,7 +1403,7 @@ void TextEdit::_notification(int p_what) { } int line_from = CLAMP(completion_index - lines / 2, 0, completion_options.size() - lines); VisualServer::get_singleton()->canvas_item_add_rect(ci, Rect2(Point2(completion_rect.position.x, completion_rect.position.y + (completion_index - line_from) * get_row_height()), Size2(completion_rect.size.width, get_row_height())), cache.completion_selected_color); - draw_rect(Rect2(completion_rect.position, Size2(nofs, completion_rect.size.height)), cache.completion_existing_color); + draw_rect(Rect2(completion_rect.position + Vector2(icon_area_size.x + icon_hsep, 0), Size2(nofs, completion_rect.size.height)), cache.completion_existing_color); for (int i = 0; i < lines; i++) { |