ImproveCompletionPanelPositionInShaderEditor

(cherry picked from commit e927a9fef0)
This commit is contained in:
floppyhammer 2021-02-21 18:52:20 +08:00 committed by Rémi Verschelde
parent 224fce946b
commit 4628ab2a15
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1643,7 +1643,7 @@ void TextEdit::_notification(int p_what) {
completion_rect.position.x = cursor_pos.x - completion_base_width - icon_area_width - csb_offset.x;
if (ajdusted_cursor_y + row_height + total_height > get_size().height) {
if (ajdusted_cursor_y + row_height + total_height > get_size().height && ajdusted_cursor_y > total_height) {
// Completion panel above the cursor line
completion_rect.position.y = ajdusted_cursor_y - total_height;
} else {