Skip to content

Commit bc2f0e4

Browse files
fix(macOS): caculation for work area (#13401)
* remove y offset * Create change-pr-13401.md
1 parent efcc840 commit bc2f0e4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.changes/change-pr-13401.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": 'patch:bug'
3+
---
4+
5+
fix(macOS): caculation for work area

crates/tauri-runtime-wry/src/monitor/macos.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ impl super::MonitorExt for tao::monitor::MonitorHandle {
1818
let mut position = self.position().to_logical::<f64>(scale_factor);
1919

2020
position.x += visible_frame.origin.x - screen_frame.origin.x;
21-
position.y += visible_frame.origin.y - screen_frame.origin.y;
2221

2322
PhysicalRect {
2423
size: LogicalSize::new(visible_frame.size.width, visible_frame.size.height)

0 commit comments

Comments
 (0)