sometimes popup doesn't close well
See original GitHub issueHi rotorgames,
I’m using below environment xamarin forms version: 2.3.3.180 rg pop up version: 1.0.4
I’m using this pop up to show loading page. I’m creating 1 page inherited to PopupPage. Please find below code.
public partial class LoadingPopupPage : PopupPage
{
public LoadingPopupPage()
{
ActivityIndicator indicator = new ActivityIndicator
{
Color = Color.White,
IsRunning = true,
IsEnabled = true,
VerticalOptions = LayoutOptions.Center,
HorizontalOptions = LayoutOptions.Center,
HeightRequest = 70,
WidthRequest = 70
};
var popupframe = new Frame
{
Padding = new Thickness (1.0)
};
var popupstacklayout = new StackLayout
{
Children =
{
indicator,
new Label
{
Text = "Please Wait",
TextColor = Color.White
}
}
};
popupstacklayout.VerticalOptions = LayoutOptions.Center;
popupstacklayout.HorizontalOptions = LayoutOptions.Center;
popupstacklayout.Padding = new Thickness(40, 20);
Content = popupstacklayout;
}
public async void closepupup()
{ await Navigation.PopPopupAsync();
await Navigation.RemovePopupPageAsync(this);
}
I called this page from my webview page.
private void webview_navigated(object sender, WebNavigatedEventArgs e)
{
webloadingpage.closepupup();
}
private async void webview_navigating(object sender, WebNavigatingEventArgs e)
{
webloadingpage = new LoadingPopupPage();
await Navigation.PushPopupAsync(webloadingpage);
}
Sometimes when it hits the webview_navigated (I debug and it hits the webloadingpage.closepopup() line), the close popup process could not close the popup well. Please advise
Best Regards, Afin
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (9 by maintainers)
Top Results From Across the Web
Popup window doesn't go away
When viewing a document showing markups and I mouse over an insertion, a popup window appears that shows the author of the insertion...
Read more >Popup only showing intermittently
I'm noticing with the popup that it is only showing intermittently. I have set the trigger to auto-open after 500ms, with the conditions...
Read more >Troubleshooting Your First Popup
If your close button still doesn't work, reach out to us so we can take a closer look. Pro Tip: If you want...
Read more >Best method(s) to allow closing a popup
Use workflow analysis to figure it out. Think about the user's workflow for a popup. A typical workflow might be:.
Read more >javascript - cant close html popup even though xpaths and ...
returns 'undefined' as well, it seems like occasionally on this webpage the popup becomes impossible to query or select with javascript.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@EmilAlipiev Are you sure that you closed the popup page which was opened? ‘webview_navigating’ could be invoked repeatedly. Then the ‘webloadingpage’ could be changed and you could close the other page. I recommend to use the ‘RemovePopupPageAsync’ only if you want to close page in center of the ‘PopupStack’.
‘PopPopupAsync’ will close last page in the ‘PopupStack’ if it contains any pages.
‘RemovePopupPageAsunc’ will close a page which you will add in the first parameter.
Ok thanks. I will test it.
Kalpesh Shah Director, Vaagha Consultancy Ltd Contact : 0044-7743391227
From: Kirill notifications@github.com Sent: Saturday, May 13, 2017 8:13:45 PM To: rotorgames/Rg.Plugins.Popup Cc: Kalpesh Shah - Vaagha; Mention Subject: Re: [rotorgames/Rg.Plugins.Popup] sometimes popup doesn’t close well (#87)
This issue was fixed in v1.1.0-pre1. Please test it and tell me about your tests. Thank you.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/rotorgames/Rg.Plugins.Popup/issues/87#issuecomment-301268813, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK5tUXk0wEjU5xGF5f3h_NP54lwEIu7_ks5r5gDpgaJpZM4MJv0a.