update content field in scroll viewer when changing it via message

This commit is contained in:
Dmitry Stepanov
2026-09-27 10:25:09 +03:00
parent 5f6b8c993a
commit e77eb25126
+1
View File
@@ -312,6 +312,7 @@ impl Control for ScrollViewer {
if message.destination() == self.handle() {
match msg {
ScrollViewerMessage::Content(content) => {
self.content = *content;
for child in ui[self.scroll_panel].children() {
ui.send(*child, WidgetMessage::Remove);
}