tauri-apps / tauri-apps/plugins-workspace

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

オープン
#653 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る
platform: macos plugin: positioner type: bug
主要言語
Rust
スター
1.8k
フォーク
602
平均マージ
4日 14時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。