fix hooks release build

This commit is contained in:
Evan Almloff committed 2024-06-10 07:41:15 -05:00
1 parent 689ac5433f
commit 79e18c2d62
3 files changed
+6 -10

No files matched your search

+4 -2
View File
@@ -18,7 +18,7 @@ use std::{
sync::Arc,
};
use tao::{
dpi::{PhysicalPosition, PhysicalSize},
dpi::PhysicalSize,
event::Event,
event_loop::{ControlFlow, EventLoop, EventLoopBuilder, EventLoopProxy, EventLoopWindowTarget},
window::WindowId,
@@ -478,7 +478,9 @@ impl App {
let window = &webview.desktop_context.window;
let position = (state.x, state.y);
let size = (state.width, state.height);
window.set_outer_position(PhysicalPosition::new(position.0, position.1));
window.set_outer_position(tao::dpi::PhysicalPosition::new(
position.0, position.1,
));
window.set_inner_size(PhysicalSize::new(size.0, size.1));
}
}