Skip to content
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

PopupMenu for Windows #55

Open
brodycj opened this issue Mar 10, 2017 · 0 comments
Open

PopupMenu for Windows #55

brodycj opened this issue Mar 10, 2017 · 0 comments

Comments

@brodycj
Copy link

brodycj commented Mar 10, 2017

As discussed in #32 this plugin does not seem to work on Windows 8.1 or Windows 10 UWP. I think the most "native" solution for Windows 10 is to use Windows.UI.Popups.PopupMenu as documented in https://docs.microsoft.com/en-us/uwp/api/windows.ui.popups.popupmenu. (I am not sure about Windows 8.1 or Windows Phone 8.1. I not recommend actively supporting these platforms.)

I made https://github.com/brodybits/cordova-windows-popup-test-app which demonstrates an implementation of this idea based on a fork of cordova-plugin-dialogs (see https://github.com/brodybits/cordova-plugin-dialogs/tree/windows-popup-test-master). The first popup button in this demo shows this working in Windows.UI.Popups.PopupMenu. I think the most tricky part is to calculate the coordinates needed to show the Windows.UI.Popups.PopupMenu in the right place.

I hope we can fix this issue in this plugin. I also raised https://issues.apache.org/jira/browse/CB-12553 in case we want to fix this in cordova-plugin-dialogs as well (or instead).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant