mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
update content field in scroll viewer when changing it via message
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user