Bug with SScaleBox with STextBlock using AutoWrapText

a Problem occur in the SScaleBox if you have in it a STextBlock using the AutoWrapText. At first it seam to work but as soon you have text that go outside of the visible view and some text that are longer the the view it will screw up the position.

In my example I have my own slate console window, when text are added it fine unless i enter in the textbox input a stupid text input like “WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW” that need to be wrapped.

+ SOverlay::Slot()
					.VAlign(VAlign_Bottom)
					.HAlign(HAlign_Fill)
					.Padding(20.0f)
					[
						SNew(SScaleBox)
						.Stretch(EStretch::ScaleToFitX)
						.StretchDirection(EStretchDirection::DownOnly)
						.VAlign(VAlign_Bottom)
						.HAlign(HAlign_Fill)
						[
							SAssignNew(OutputTextBlock, STextBlock)
							.TextStyle(&SUWindowsStyle::Get().GetWidgetStyle<FTextBlockStyle>(TEXT("Console.OutputFont")))
							.AutoWrapText(true)
						]
					]

We are aware of some issues with SScaleBox and text. This was fixed by e18f87b.

FWIW, the text you entered won’t currently be wrapped as there aren’t any break candidates in that string. I do have a bug about forcibly breaking at the wrap width (probably as an option), however I can’t say when that might actually be fixed.

ok thank you for your reply

I changed my control to use a SMultiLineEditableText, but this control also have this bug.

So when I have big word I add space to the wrapping work but it is a hack in my opinion :slight_smile: