docs/bevy/release-content/migration-guides/editable_text_scrolling.md 652 B · 10 lines · raw · history

1 ---
2 title: "`bevy_ui::widget::TextScroll` has been replaced by `EditableText::viewport`"
3 pull_requests: [24634]
4 ---
5
6 `bevy_ui::widget::TextScroll` has been removed. Editable text scroll state is now stored in `EditableText::viewport`, using the new `bevy_text::TextViewport` type. `EditableText::viewport.offset` is the direct replacement for `TextScroll`.
7
8 The `scroll_editable_text` system has also been removed, cursor reveal behavior is now handled automatically when `TextEdit`s are applied.
9
10 A new system `sync_editable_text_viewports` in `bevy_ui` synchronizes each `EditableText`'s viewport size with the size of its respective `ComputedNode`.