From a925d6b94ddee8ee437fc795387276720695df0f Mon Sep 17 00:00:00 2001 From: mars Date: Tue, 15 Nov 2022 17:12:04 -0700 Subject: [PATCH] Fix use of PX_PER_MM --- apps/sandbox/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sandbox/src/main.rs b/apps/sandbox/src/main.rs index add37fd..8593ebd 100644 --- a/apps/sandbox/src/main.rs +++ b/apps/sandbox/src/main.rs @@ -118,7 +118,7 @@ impl PanelWindow { self.current_size = size; let size = canary::Vec2::new(size.x, size.y); - self.panel.on_resize(size / PX_PER_MM); + self.panel.on_resize(size * PX_PER_MM); } if let Some(hover_pos) = response.hover_pos() {