more request_layout methods changed
@@ -150,6 +150,7 @@ impl<'a> EventCtx<'a> {
/// [`layout`]: widget/trait.Widget.html#tymethod.layout
pub fn request_layout(&mut self) {
self.base_state.needs_layout = true;
+ self.request_paint();
}
/// Indicate that your children have changed.
@@ -387,6 +388,7 @@ impl<'a> LifeCycleCtx<'a> {
/// [`EventCtx::request_layout`]: struct.EventCtx.html#method.request_layout
pub fn request_layout(&mut self) {
self.base_state.needs_layout = true;
+ self.request_paint();
}
/// Returns the current widget's `WidgetId`.
