Browse Source

Text widget: Fix text not being formatted in some cases

Michael Ragazzon 3 years ago
parent
commit
e97af1c077
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Core/Elements/WidgetTextInput.cpp

+ 1 - 1
Source/Core/Elements/WidgetTextInput.cpp

@@ -1127,7 +1127,7 @@ Vector2f WidgetTextInput::FormatText(float height_constraint)
 		// Finally, push the new line into our array of lines.
 		lines.push_back(std::move(line));
 
-	} while (!last_line && content_area.y < height_constraint);
+	} while (!last_line && content_area.y <= height_constraint);
 
 	// Clamp the cursor to a valid range.
 	absolute_cursor_index = Math::Min(absolute_cursor_index, (int)GetValue().size());