tauri-apps / tauri-apps/plugins-workspace

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

Abierto
#653 3 comentarios 1 reacción 0 asignados Ver en GitHub
platform: macos plugin: positioner type: bug
Lenguaje dominante
Rust
Estrellas
1.8k
Forks
602
Merge medio
4 d 14 h
PR fusionados (30 d)
9

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.