浏览代码

Merge pull request #28583 from theoniko/show-long-name-variables-correctly

Fix First Ctrl+R and Ctrl+F not showing long name variables correctly
Michael Alexsander Silva Dias 6 年之前
父节点
当前提交
15cda53d80
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      scene/gui/line_edit.cpp

+ 1 - 3
scene/gui/line_edit.cpp

@@ -613,9 +613,7 @@ void LineEdit::_notification(int p_what) {
 #endif
 		case NOTIFICATION_RESIZED: {
 
-			if (expand_to_text_length) {
-				window_pos = 0; //force scroll back since it's expanding to text length
-			}
+			window_pos = 0; //force scroll back since it's expanding to text length
 			set_cursor_position(get_cursor_position());
 
 		} break;