Ver código fonte

ImproveCompletionPanelPositionInShaderEditor

(cherry picked from commit e927a9fef031a8990185776d0aeee65ed78552d9)
floppyhammer 4 anos atrás
pai
commit
4628ab2a15
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      scene/gui/text_edit.cpp

+ 1 - 1
scene/gui/text_edit.cpp

@@ -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 {