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)
]
]