bevy/crates/bevy_ui/src/widget
ickshonpe e950b1e09b Changes in the size of a text node should trigger recomputation of its text (#7674)
# Objective

The text contained by a text node is only recomputed when its `Style` or `Text` components change, or when the scale factor changes. Not when the geometry of the text node is modified.

Make it so that any change in text node size triggers a text recomputation.

## Solution

Change `text_system` so that it queries for text nodes with changed `Node` components and recomputes their text. 

---

Most users won't notice any difference but it should fix some confusing edge cases in more complicated and interactive layouts.

## Changelog

* Added `Changed<Node>` to the change detection query of `text_system`. This ensures that any change in the size of a text node will cause any text it contains to be recomputed.
2023-02-14 14:46:28 +00:00
..
button.rs add #[reflect(Default)] to create default value for reflected types (#3733) 2022-05-03 19:20:13 +00:00
image.rs The size field of CalculatedSize should not be a Size (#7641) 2023-02-13 18:20:29 +00:00
mod.rs Partially document bevy_ui (#3526) 2022-01-07 22:20:34 +00:00
text.rs Changes in the size of a text node should trigger recomputation of its text (#7674) 2023-02-14 14:46:28 +00:00