webview / webview

Tiny cross-platform webview library for C/C++. Uses WebKit (GTK/Cocoa) and Edge WebView2 (Windows).
https://webview.dev
MIT License
12.36k stars 929 forks source link

Window doesn't update x and y coordinates on move #1119

Open zzz-mimimi opened 1 month ago

zzz-mimimi commented 1 month ago

What OS are you using (uname -a, or Windows version)?

Windows 10 19045.4529

What programming language are you using (C/C++/Go/Rust)?

I don't really know as i'm using Winterreisender's webview-nodejs, But i'd guess C++.

What did you expect to see and what you saw instead?

I'd expect to see the correct x and y location, instead they remain the same.

Edit: Refreshing the page gets the new x and y coordinates but they remain the same as mentioned above. I'm also unsure if the issue lies at webview or webview-nodejs, If no one can reproduce this i'll assume its an issue with webview-nodejs

!

neroist commented 1 month ago

Same thing w Nim bindings, which directly compile the C source. Not an issue in just webview-nodejs.

zzz-mimimi commented 3 weeks ago

Same thing w Nim bindings, which directly compile the C source. Not an issue in just webview-nodejs.

Is there any workaround you're aware of, or am I out of luck on this one?

neroist commented 3 weeks ago

Is there any workaround you're aware of, or am I out of luck on this one?

If possible, perhaps you could use the native window handle to get the position of the window. But getting (& setting) the window position should be included in webview.