# Why does it take a second to wrap text when loading a widget?

**URL:** <https://forums.unrealengine.com/t/why-does-it-take-a-second-to-wrap-text-when-loading-a-widget/439371>\
**Category:** UI\
**Tags:** loading-phase, unreal-engine, question, UMG\
**Created:** [December 12, 2018, 5:01pm UTC](https://forums.unrealengine.com/t/why-does-it-take-a-second-to-wrap-text-when-loading-a-widget/439371 "2018-12-12T17:01:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MINIME453](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MINIME453](https://forums.unrealengine.com/u/MINIME453)\
**Post date:** [December 12, 2018, 5:01pm UTC](https://forums.unrealengine.com/t/why-does-it-take-a-second-to-wrap-text-when-loading-a-widget/439371/1 "2018-12-12T17:01:30Z")

</div>

I’m currently working with text wrapping in the UMG, and can’t figure out why it takes a split second for the UMG to wrap the text when I load a widget. I’ve looked around online, but can’t seem to find anything that talks about this. Is it this a setting, bug, or something simple that I’ve completed missed?

![262147-was.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/1/89115606839d592b4857d47c61b10fdd485137cf.gif)

---

<div class="post-metadata">

**Author:** ![MajinSephiroth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MajinSephiroth](https://forums.unrealengine.com/u/MajinSephiroth)\
**Post date:** [December 12, 2018, 5:31pm UTC](https://forums.unrealengine.com/t/why-does-it-take-a-second-to-wrap-text-when-loading-a-widget/439371/2 "2018-12-12T17:31:41Z")

</div>

This has to do with the draw call for a widget. The dimensions are only calculated after the initial pass on a widget, all adjustments are being done once the dimensions are calculated.

Generally, you will notice this happening a lot if you have text that is created and added to any kind of container (scroll box, size box, vertical box, horizontal box, etc).

---

<div class="post-metadata">

**Author:** ![MINIME453](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MINIME453](https://forums.unrealengine.com/u/MINIME453)\
**Post date:** [December 13, 2018, 2:59pm UTC](https://forums.unrealengine.com/t/why-does-it-take-a-second-to-wrap-text-when-loading-a-widget/439371/3 "2018-12-13T14:59:12Z")

</div>

Interesting. Are there any good ways to make the widget calculate this before it’s on screen in order to keep it from doing this?

---

<div class="post-metadata">

**Author:** ![MINIME453](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MINIME453](https://forums.unrealengine.com/u/MINIME453)\
**Post date:** [January 18, 2019, 5:33pm UTC](https://forums.unrealengine.com/t/why-does-it-take-a-second-to-wrap-text-when-loading-a-widget/439371/4 "2019-01-18T17:33:16Z")

</div>

Under wrapping set the value “Wrap text at” to whatever the max screen width you want the text to be. solves this problem completely.

![265782-textwrapfix.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/3/2035ca5470e00e3822f138ee9221d02e75d6b335.jpeg)
