tauri-apps / tauri-apps/plugins-workspace

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

未关闭
#653 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
platform: macos plugin: positioner type: bug
主要语言
Rust
星标
1.8k
派生
602
平均合并
4 天 14 小时
30 天内合并 PR
9

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。