diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-21 00:17:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-21 00:17:35 +0100 |
commit | 7e86b4c0e463acc31a4818d61edf1aa5c018a1d8 (patch) | |
tree | 16822308376909a489a90c56d4a16a0ba98417cc /scene/gui | |
parent | 28ff1e2d96e3fe61a6eb706cb0a1f30e991e83de (diff) | |
parent | e927a9fef031a8990185776d0aeee65ed78552d9 (diff) |
Merge pull request #46280 from floppyhammer/AdjustCompletionPanelPosition
Improve Completion Panel Position in Shader Editor
Diffstat (limited to 'scene/gui')
-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 61266f6d22..cf3978ca41 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -1557,7 +1557,7 @@ void TextEdit::_notification(int p_what) { completion_rect.position.x = rect_left_border_x; } - if (cursor_pos.y + row_height + total_height > get_size().height) { + if (cursor_pos.y + row_height + total_height > get_size().height && cursor_pos.y > total_height) { // Completion panel above the cursor line completion_rect.position.y = cursor_pos.y - total_height; } else { |