tauri-apps / tauri-apps/plugins-workspace

[positioner] v2 alpha TrayCenter is not in the correct location

Open
#653 3 comments 1 reaction 0 assignees View on GitHub
platform: macos plugin: positioner type: bug
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

In rust when calling `move_window` to the `Position::TrayCenter` the acutal position is off on MacOS 13.5.1

```rs
let tray = tauri::tray::TrayIconBuilder::new()
.icon(icon)
.on_tray_icon_event(|tray, event| {
let app = tray.app_handle();
tauri_plugin_positioner::on_tray_event(app, &event);
match event.click_type {
ClickType::Left => {
if let Some(window) = app.get_window("main") {
let _ = window.move_window(Position::TrayCenter);
```
Screenshot 2023-10-11 at 11 37 45 AM

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.