Selaa lähdekoodia

Fix First Ctrl+R and Ctrl+F not showing long name variables correctly

theoniko 6 vuotta sitten
vanhempi
commit
505ab3d225
1 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  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
 #endif
 		case NOTIFICATION_RESIZED: {
 		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());
 			set_cursor_position(get_cursor_position());
 
 
 		} break;
 		} break;