Use computed sizes for ViziaState

This commit is contained in:
Robbert van der Helm
2023-03-07 21:22:15 +01:00
parent 17a95e703f
commit f6041789cd
8 changed files with 78 additions and 41 deletions

View File

@@ -31,7 +31,7 @@ impl Model for Data {}
// Makes sense to also define this here, makes it a bit easier to keep track of
pub(crate) fn default_state() -> Arc<ViziaState> {
ViziaState::from_size(400, 390, false)
ViziaState::new(|| (400, 390))
}
pub(crate) fn create(