-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Problem/Bug]: Position of select inputs not updating #4324
Comments
Hello, Thanks for taking the time to file this issue. To accurately understand and triage this problem could you help us clarify what framework you are using for your app? For example is it Win32, UWP, WinForms, WPF, WinAppSDK, etc... Also, are you using this API in your app: NotifyParentWindowPositionChanged. Its purpose is to make the parent window aware of window position changes. |
I'm using Photino, this is the website and this is its Github repository. I am not using that API and I don't know if Photino uses it. I'm going to put an issue in their repository to see if they are using it. |
I am one of the maintainers of Photino. We have just implemented this call on WM_MOVE and WM_MOVING and validated that it is being called, however, the problem remains. We are currently using the WebView2 NuGet package version 1.0.1462.37. The link above is for a pre-release version where the method is part of a host object. We're implementing this on the controller object: https://learn.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2controller.notifyparentwindowpositionchanged?view=webview2-dotnet-1.0.1462.37 Please advise. |
Any ideas why the API is not working correctly? |
We are loading the webview control from a Win32 native window in C++. We are calling NotifyParentWindowPositionChanged on both WM_MOVE and WM_MOVING in the event loop and have validated that it is being called. It appears to have no effect on the webview control. |
@victorhuangwq @tochukwuIbeEkeocha I've been testing with other libraries and they suffer from the same problem. There are many posts reporting the bug, some even saying that it doesn't work well in Tauri either. Are you sure the API works fine? .NET MAUI (It uses Microsoft.AspNetCore.Components.WebView.Maui) |
What happened?
When deploying a select input, the dropdown takes the position of the last position where the element was, not where the input currently is. Furthermore, if you display the select and move the window, the display remains fixed, its position is not relative to the select input.
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
121.0.2277.83
SDK Version
121.0.2277.83
Framework
Other
Operating System
Windows 10
OS Version
Windows 10 Pro 22H2
Repro steps
Repros in Edge Browser
No
Regression
No, this never worked
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: