-
Notifications
You must be signed in to change notification settings - Fork 381
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
[BUG] When a Popup is displayed, a warning is displayed and the content of the page from which the Popup is displayed disappears. #1416
Comments
I was initially expecting what you posted. I was wondering if there was a way to make both MacCatalyst and iOS work as intended, but by doing the following, it works as long as Popups are not displayed nested.
However, if you display Popups nested, the second Popup and subsequent Popups will not be displayed. |
@cat0363 you commented on your PR with this:
If my PR affected just iOS, then what is preventing you from using my solution posted in that PR as a comment? iOS apps are single window apps, so this line of code under the Just curious on why that solution won't work? |
Does ipad support multi-window apps? If so, we need to care about it on iOS world, since it's compiled to iPad. |
@babenkovitaliy , Thanks for your comment.
This is because I don't know of any clear reason not to do conditional branching. At least, on the iOS Shell app that I tested, a warning was output and it did not work as intended. However, what I am concerned about is whether the Popup nesting that I was trying to achieve on iOS will also work on MacCatalyst if I do that. I think that PR #1361 may not work on MacCatalyst. In any case, we need to know the concept behind not using conditional branching. Your PR that you first submitted had a conditional branch. @pictos , I don't know if iPad multitasking is equivalent to MacCatalyst. If you launch multiple apps, aren't the instances different? Is it possible to display multiple windows in the same instance? |
The code below also works if you nest popups on iOS, but I don't know if popups can be nested on MacCatalyst.
It may be better to clearly separate them using conditional branching ... |
As a side note, we have fixed the Popup position problem for iOS, but the Popup position problem still exists for MacCatalyst. |
@cat0363 Just an FYI. I did see all of your responses. However, I've only had time to read the responses, but not go anywhere past that. Too many work and life related things happening that is preventing me from looking into this a little more. |
@babenkovitaliy , Thank you for your reply despite your busy schedule. |
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
Build the latest source code of main and display Popup on iOS.
The content of the page from which the Popup is displayed disappears when the Popup is displayed.
iPhone.14.iOS.16.4.2023-09-19.12-33-56.mp4
The following warning message is output when displaying the popup.
The above warning message occurs in the following locations.
[src\CommunityToolkit.Maui.Core\Views\Popup\MauiPopup.macios.cs]
Expected Behavior
I was hoping that the content of the page from which the Popup was displayed would not disappear when the Popup was displayed, and that the Popup would be displayed as intended.
Steps To Reproduce
The steps to reproduce are as follows.
In step 2, the content of the page from which the Popup is displayed will disappear at the same time the Popup is displayed.
Please use the latest source code of main to reproduce.
Link to public reproduction project repository
https://github.com/cat0363/MauiComm-IssuePopupSizePosition.git
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: