ImproveCompletionPanelPositionInShaderEditor
(cherry picked from commit e927a9fef0
)
This commit is contained in:
parent
224fce946b
commit
4628ab2a15
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue