tauri-apps / tauri-apps/plugins-workspace

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

Đang mở
#653 3 bình luận 1 reaction 0 người được giao Xem trên GitHub
platform: macos plugin: positioner type: bug
Ngôn ngữ chính
Rust
Star
1.8k
Fork
602
Merge trung bình
4 ngày 14 giờ
Pull request đã merge (30 ngày)
9

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.