Merge pull request #1149 from nicksenger/fix/component-height

Fix `Widget::height` for `Component`
This commit is contained in:
Héctor Ramón 2021-12-09 15:00:53 +07:00 committed by GitHub
commit aa96a0a84d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ where
}
fn height(&self) -> Length {
self.state.as_ref().unwrap().borrow_cache().element.width()
self.state.as_ref().unwrap().borrow_cache().element.height()
}
fn layout(