fix(macOS): caculation for work area (#13401)

* remove y offset

* Create change-pr-13401.md
This commit is contained in:
Oscar Beaumont 2025-05-09 07:36:12 -04:00 committed by GitHub
parent efcc840ff0
commit bc2f0e48ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"tauri": 'patch:bug'
---
fix(macOS): caculation for work area

View File

@ -18,7 +18,6 @@ impl super::MonitorExt for tao::monitor::MonitorHandle {
let mut position = self.position().to_logical::<f64>(scale_factor);
position.x += visible_frame.origin.x - screen_frame.origin.x;
position.y += visible_frame.origin.y - screen_frame.origin.y;
PhysicalRect {
size: LogicalSize::new(visible_frame.size.width, visible_frame.size.height)