Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

App position is misaligned on Windows #2

Open
aaronleopold opened this issue Nov 17, 2021 · 1 comment
Open

App position is misaligned on Windows #2

aaronleopold opened this issue Nov 17, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@aaronleopold
Copy link
Owner

I currently do the following to position the application relative the tray:

let tray_pos = PhysicalPosition {
          x: position.x as i32,
          y: position.y as i32,
};

window.set_position(Position::Physical(tray_pos)).unwrap();

This works (almost 😄 ) perfectly on macos, however on windows it is not at all in the right position (it lives under the taskbar, which is not good). A more complicated positioning logic might have to be implemented (top taskbar on windows, linux??, etc) however for now I just need to make it kinda work on windows

@aaronleopold aaronleopold added the bug Something isn't working label Nov 17, 2021
@aaronleopold
Copy link
Owner Author

maybe use this when it is more mature: https://github.com/JonasKruckenberg/tauri-plugin-positioner

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant