# TextBox Wrapping ignores "Wrap Text At" after SetText is called.

**URL:** <https://forums.unrealengine.com/t/textbox-wrapping-ignores-wrap-text-at-after-settext-is-called/139072>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [February 29, 2020, 1:24pm UTC](https://forums.unrealengine.com/t/textbox-wrapping-ignores-wrap-text-at-after-settext-is-called/139072 "2020-02-29T13:24:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Talad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Talad](https://forums.unrealengine.com/u/Talad)\
**Post date:** [February 29, 2020, 1:24pm UTC](https://forums.unrealengine.com/t/textbox-wrapping-ignores-wrap-text-at-after-settext-is-called/139072/1 "2020-02-29T13:24:42Z")

</div>

Hi, I may have found a bug in the engine, or I’m missing something. I’m using simple text box with wrapping of text, and I want to use the feature: “Wrap Text At”. It works well in the design mode, and when the engine starts, first time I visualize the widget. But then if I change the text seems the “Wrap Text At” is ignored. I tried to get the value at runtime, and the value is set to 200, but its ignored. I’m using 4.24.1 release

 ![problem_Wrap_Text_At.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/0/802c814c3c141468fde5559d90e094b78a1b1d7a.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_deb0406f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_deb0406f](https://forums.unrealengine.com/u/anonymous_user_deb0406f)\
**Post date:** [February 29, 2020, 1:43pm UTC](https://forums.unrealengine.com/t/textbox-wrapping-ignores-wrap-text-at-after-settext-is-called/139072/2 "2020-02-29T13:43:04Z")

</div>

I use something like this for tooltips and it’s working fine.  
Try like this: after Canvas Panel add \*\*Overlay \*\*as parent element and check \*\*Size to Content. \*\*You can after add **Sizebox** element

---

<div class="post-metadata">

**Author:** ![Talad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Talad](https://forums.unrealengine.com/u/Talad)\
**Post date:** [February 29, 2020, 3:41pm UTC](https://forums.unrealengine.com/t/textbox-wrapping-ignores-wrap-text-at-after-settext-is-called/139072/3 "2020-02-29T15:41:26Z")

</div>

Hi, thanks for your reply. I tried to add the Overlay with size to content, also added next the sizebox, but its not working, the result is identical to the screenshots above.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_deb0406f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_deb0406f](https://forums.unrealengine.com/u/anonymous_user_deb0406f)\
**Post date:** [February 29, 2020, 4:46pm UTC](https://forums.unrealengine.com/t/textbox-wrapping-ignores-wrap-text-at-after-settext-is-called/139072/4 "2020-02-29T16:46:01Z")

</div>

In your sizebox set Child layout: Min desired Width, Min Desired Height, Max desired Width and other parameters if needed.  
It will automatically expand to desired width/height.

![Untitled2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/4/245e3eb898d2f4b9a9580bca37c8e877481d6631.jpeg)

---

<div class="post-metadata">

**Author:** ![Talad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Talad](https://forums.unrealengine.com/u/Talad)\
**Post date:** [February 29, 2020, 5:17pm UTC](https://forums.unrealengine.com/t/textbox-wrapping-ignores-wrap-text-at-after-settext-is-called/139072/5 "2020-02-29T17:17:57Z")

</div>

I found the solution and my mistake. The problem was using “Auto Wrap Text” + “Wrap Text At” together. This doesnt work. To obtain what I want you need to use ONLY “Wrap Text At” and leave “Auto Wrap Text” unchecked.

---

<div class="post-metadata">

**Author:** ![parkhfdh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@parkhfdh](https://forums.unrealengine.com/u/parkhfdh)\
**Post date:** [May 15, 2022, 6:44pm UTC](https://forums.unrealengine.com/t/textbox-wrapping-ignores-wrap-text-at-after-settext-is-called/139072/6 "2022-05-15T18:44:06Z")

</div>

This issue also took me almost a whole week to find a soluation. Gosh, why they didn’t mention it on the official page?
