Browse Source

Text widgets: Break words when word-wrap is enabled

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

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

@@ -61,6 +61,7 @@ WidgetTextInput::WidgetTextInput(ElementFormControl* _parent) : internal_dimensi
 	parent->SetProperty(PropertyId::OverflowX, Property(Style::Overflow::Hidden));
 	parent->SetProperty(PropertyId::OverflowX, Property(Style::Overflow::Hidden));
 	parent->SetProperty(PropertyId::OverflowY, Property(Style::Overflow::Hidden));
 	parent->SetProperty(PropertyId::OverflowY, Property(Style::Overflow::Hidden));
 	parent->SetProperty(PropertyId::Drag, Property(Style::Drag::Drag));
 	parent->SetProperty(PropertyId::Drag, Property(Style::Drag::Drag));
+	parent->SetProperty(PropertyId::WordBreak, Property(Style::WordBreak::BreakWord));
 	parent->SetClientArea(Box::CONTENT);
 	parent->SetClientArea(Box::CONTENT);
 
 
 	parent->AddEventListener(EventId::Keydown, this, true);
 	parent->AddEventListener(EventId::Keydown, this, true);