Size To Content uses the desired size of the content. If the content can arbitrarily shrink and change sizes, based on the previous size, you're going to see this kind of Hysteresis, nature of the beast.
TextBox(Multi-line) or EditableText(multi-line) in UMG blinks when it meets certain condition in editor.
The condition is Both Size to content option for TextBox(Multi-line) or EditableText(multi-line) and Canvas panel as its parent is true, Anchor typs is filling each axis for the child, Wrap Text At is larger than sum of each axis' offset.
1) Create new widget blueprint
2) Add a new Canvas panel
3) Add one TextBox(Multi-line) or EditableText(multi-line) as the panel's child
4) Set anchor to filling each axis (most right bottom one)
5) Give each 20 to all four offsets
6) Fill Text with any long word
7) Set Wrap Text At more than sum of each axis, this time use 450 for test (i.e. 20+20 -> 40)
8) Check Size To Content than select the Canvas panel
9) Compile and check Size To Content of the panel.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-25724 in the post.
0 |
Component | UE - Editor - UI Systems |
---|---|
Affects Versions | 4.10, 4.11 |
Created | Jan 20, 2016 |
---|---|
Resolved | Jan 25, 2016 |
Updated | Jul 14, 2021 |