tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[bug] App window height keeps getting longer when dragging from one window to another.

Open rp1231 opened this issue 1 year ago • 3 comments

Describe the bug

I use an external monitor with my laptop, and every time I drag the app from one screen to another, the window keeps on increasing in length. Below is a video capture of dragging the app across the screens a couple of times.

https://user-images.githubusercontent.com/47380919/236623700-4852c509-c011-4814-a169-4e107157de2e.mp4

Reproduction

No response

Expected behavior

No response

Platform and versions

[✔] Environment
    - OS: Windows 10.0.22621 X64
    ✔ WebView2: 112.0.1722.68
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.69.0 (84c898d65 2023-04-16)
    ✔ Cargo: 1.69.0 (6e9a83356 2023-04-12)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)
    - node: 19.9.0
    - pnpm: 8.4.0
    - yarn: 1.22.19
    - npm: 9.4.0

[-] Packages
    - @tauri-apps/api [NPM]: not installed!
    - @tauri-apps/cli [NPM]: 1.3.0

Stack trace

No response

Additional context

No response

rp1231 avatar May 06 '23 12:05 rp1231

Met a similar bug: Drag the window from a bottom-arranged builtin display to a top-arranged external display, it will appear an unexpected gap between the titlebar and the mouse.

xuchaoqian avatar May 06 '23 14:05 xuchaoqian

Could you give more information about your app and system? do you have the decorations disabled? what is the resolution and scale of each screen?

amrbashir avatar May 23 '23 01:05 amrbashir

The app is a wrapper for google search that lives in the system tray and is accessible via a global shortcut.

Decorations have not been disabled.

I just shifted to a new laptop shortly after this post, So the resolution is different for both screens but the bug seems to be present despite the resolution change. So it seems that the bug is unrelated to resolution. When I posted the video, the resolution of my laptop and external monitor both, was 1920x1080. But after shifting to a new laptop with a 2560x1440 screen and the same external monitor, the bug still seems to be present.

Also the scaling currently is 125% for the external monitor and 150% for the laptop.

What other details would you require regarding the system?

rp1231 avatar May 23 '23 04:05 rp1231