Simplify Panel::wrap_needs_relayout

This commit is contained in:
Jacob Budin 2018-10-02 14:20:14 -04:00
parent 8d3be52927
commit 38fdcc7bf8

View File

@ -120,7 +120,6 @@ impl<V: View> ViewWrapper for Panel<V> {
}
fn wrap_needs_relayout(&self) -> bool {
self.invalidated
|| self.with_view(|v| v.needs_relayout()).unwrap_or(true)
self.invalidated || self.view.needs_relayout()
}
}