mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Simplify Panel::wrap_needs_relayout
This commit is contained in:
parent
8d3be52927
commit
38fdcc7bf8
@ -120,7 +120,6 @@ impl<V: View> ViewWrapper for Panel<V> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn wrap_needs_relayout(&self) -> bool {
|
fn wrap_needs_relayout(&self) -> bool {
|
||||||
self.invalidated
|
self.invalidated || self.view.needs_relayout()
|
||||||
|| self.with_view(|v| v.needs_relayout()).unwrap_or(true)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user