# Text Widget Autowrap does not Wrap

**URL:** <https://forums.unrealengine.com/t/text-widget-autowrap-does-not-wrap/1297945>\
**Category:** UI\
**Tags:** unreal-engine, Widget, question\
**Created:** [September 15, 2023, 11:51pm UTC](https://forums.unrealengine.com/t/text-widget-autowrap-does-not-wrap/1297945 "2023-09-15T23:51:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![blindminds](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blindminds/32/1213160_2.png) [@blindminds](https://forums.unrealengine.com/u/blindminds)\
**Post date:** [September 15, 2023, 11:51pm UTC](https://forums.unrealengine.com/t/text-widget-autowrap-does-not-wrap/1297945/1 "2023-09-15T23:51:56Z")

</div>

I am dynamically creating an Anchor Menu Widget (on Get User Menu); when I create the list of items and add them to the menu (Text Widgets), the text does not wrap until the menu item is hovered over (On Hover for Button Widget changes the Font Typeface). I have also tried not dynamically setting the Auto Wrap, and having the Auto Wrap pre-set to true directly on the widget blueprint that I am using to spawn the list of items.  
Screenshot of the Widget Containing the Anchor Menu. The Highlighted Widget is the Button that Opens the Menu.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/5/255de8b266d80e7221b327dc3b56496c1f38134e.jpeg)  
Screenshot of the menu appearing when it is created:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/a/caa98169d0789e2f2b30beb6bb90e8c6390289ac.jpeg)  
Screenshot of Menu after Text hovered over  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/f/def081907bd9ec0fc22d57b9fbcd8da6c456f7b2.jpeg)

Screenshot of the Widget that is spawned as a menu item (Autowap wont wrap until hover)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/1/7a18f1c1f1a51b3c3dc5340742b65af81610f9b8.jpeg)

I cannot figure out how to get the text widget to appear with Autowrap imediately when menu created

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 16, 2023, 12:52pm UTC](https://forums.unrealengine.com/t/text-widget-autowrap-does-not-wrap/1297945/2 "2023-09-16T12:52:24Z")

</div>

You could set a value for the TB’s `Wrap Text At` but it may not be feasible / flexible enough for many reasons. You could try calling this:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/4/134fd8134b114a44aa7b439f27b008019c7b62fd.png)

For the widget that owns the anchor.

---

<div class="post-metadata">

**Author:** ![blindminds](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blindminds/32/1213160_2.png) [@blindminds](https://forums.unrealengine.com/u/blindminds)\
**Post date:** [September 16, 2023, 3:45pm UTC](https://forums.unrealengine.com/t/text-widget-autowrap-does-not-wrap/1297945/3 "2023-09-16T15:45:54Z")

</div>

How do you have so much time to answer so many questions? I must say, it is amazing having you apart of the community!

I tried the Force Node in may ways and never got a different result.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/1/c81691f542bfafe1192b9afe809ba8c505671855.png)  
I tried the node in the “on get user menu” function with the Menu Anchor as the target  
Tried using it on the pre-construct and construct nodes of the base widget (TurnPhases) with self as target  
Tried Pre-Construct and Construct with the Actions\_VBox containing menu anchor as target  
Tried the actual Menu Widget (Class elected in Menu Anchoe Details Panel) in pre-con and Construct with self as targt and the VBox as target in which the children are added to

Could not get anything to work ☹

Appreciate your assistance though! I am at a loss as to how (or if) this can work as desired.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 16, 2023, 3:55pm UTC](https://forums.unrealengine.com/t/text-widget-autowrap-does-not-wrap/1297945/4 "2023-09-16T15:55:21Z")

</div>

> [@blindminds](#):
>
> Could not get anything to work ☹

I’ll have a closer look on Monday. Anchor instatiating user widgets with text boxes that do autowrap immediately. And the thing sits in a scale box.

Could you show an example hierarchy of the widget the anchors brings up? So I can try repro it?

---

<div class="post-metadata">

**Author:** ![blindminds](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blindminds/32/1213160_2.png) [@blindminds](https://forums.unrealengine.com/u/blindminds)\
**Post date:** [September 17, 2023, 2:27pm UTC](https://forums.unrealengine.com/t/text-widget-autowrap-does-not-wrap/1297945/5 "2023-09-17T14:27:45Z")

</div>

Screenshot of the First Menu Level, MenuAnchor and its on user get menu function

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/3/9a3956adbb50d5c702b5bbccac9503a78001e202.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/3/293f881aeb558fb642e2ec8eeefd7b38882e8895.png)

Screenshot of the Widget for the Above Menu Anchor and its on user get menu function

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/5/2c54a5d16dd19ca1d4c0cd3cf1dbc894ec6fc424.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/c/f/acfed5c4123ca76a86bbc00a3441a9a833daed41.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/4/6/046a53170438cc92c737aae90322af9610b4a10b.jpeg)

Screenshot of the Widget the SpellLvl\_MenuAnchor Uses

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/0/ab0bbacb2cbf1b4bf62edc7e2eab6ae275af0f67.png)

I tried the Force node in all places I could think to try in all the widgets  
Basically I am creating a 3 tier Menu System using Menu Anchors. I use Function Binding for all Menu Anchors for custom creation of the Menu Anchors

Thanks so much for taking the time to look into this!  
Hope these details help (I removed all the force nodes I had placed to try to make it clearer to read)
