fix(core/rust): Fix request_complete_repaint for components without any Child descendants

matejcik/one-of
Jan Pochyla 3 years ago committed by matejcik
parent 129363f080
commit a7a305d34d

@ -127,6 +127,10 @@ where
#[cfg(feature = "ui_debug")]
panic!("cannot raise messages during RequestPaint");
}
// Make sure to at least a propagate the paint flag upwards (in case there are
// no `Child` instances in `self`, paint would not get automatically requested
// by sending `Event::RequestPaint` down the tree).
ctx.request_paint();
}
}

Loading…
Cancel
Save