# Bug with SScaleBox with STextBlock using AutoWrapText

**URL:** <https://forums.unrealengine.com/t/bug-with-sscalebox-with-stextblock-using-autowraptext/333474>\
**Category:** Feedback & Requests\
**Tags:** FText, unreal-engine, bug-report, UE4, question\
**Created:** [September 26, 2015, 4:11pm UTC](https://forums.unrealengine.com/t/bug-with-sscalebox-with-stextblock-using-autowraptext/333474 "2015-09-26T16:11:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![labidus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@labidus](https://forums.unrealengine.com/u/labidus)\
**Post date:** [September 26, 2015, 4:11pm UTC](https://forums.unrealengine.com/t/bug-with-sscalebox-with-stextblock-using-autowraptext/333474/1 "2015-09-26T16:11:23Z")

</div>

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

```

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [September 28, 2015, 4:22pm UTC](https://forums.unrealengine.com/t/bug-with-sscalebox-with-stextblock-using-autowraptext/333474/2 "2015-09-28T16:22:03Z")

</div>

We are aware of some issues with `SScaleBox` and text. This was fixed by [e18f87b](https://github.com/EpicGames/UnrealEngine/commit/e18f87b4247152900acdf3ab1003991eaa343510).

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.

---

<div class="post-metadata">

**Author:** ![labidus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@labidus](https://forums.unrealengine.com/u/labidus)\
**Post date:** [September 28, 2015, 5:04pm UTC](https://forums.unrealengine.com/t/bug-with-sscalebox-with-stextblock-using-autowraptext/333474/3 "2015-09-28T17:04:12Z")

</div>

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 🙂
