You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Popup's Content Size exceeds the Size specified in the Popup's Size property.
On Android and iOS, the size specified in the Popup's size property takes precedence.
However, it takes precedence as long as it does not exceed the size of its parent.
The red line in the execution result is the horizontal and vertical center.
As you can see from the execution result, when VerticalOptions is Center, the vertical position is off center.
Also, if VerticalOptions is End, it will not be displayed to fit in the Popup's Parent.
The following are the execution results before and after resizing the Window that displays the Popup.
[Before Resize]
[After Resize]
The position of the Popup is not changed according to the resizing of the Window that displays the Popup.
Expected Behavior
I expected the following.
I expected the Popup's Content Size to be limited to the Size specified in the Popup's Size property.
If I specified Center for the Popup's VerticalOptions, I expected the Popup to appear in the center of the Window it was displayed from.
If I specified End for the Popup's VerticalOptions, I would have expected the Popup to appear so that it fits at the bottom of the Window that displays it.
If I change the Size of the Window that displays the Popup, I expected the Popup's position to update as the Window that displays the Popup resizes.
Steps To Reproduce
The steps to reproduce are as follows.
For the source code downloaded from github, be sure to refer to the latest main project of CommunityToolkit.
[Case1]
Launch apps uploaded to GitHub on Windows
Set HorizontalOptions to Start, VerticalOptions to Center
Press Show Popup1 button
In step 3, the content of the Popup is displayed beyond the size specified in the Size property of the Popup.
[Case2]
Launch apps uploaded to GitHub on Windows
Set HorizontalOptions to Start, VerticalOptions to Center
Press Show Popup2 button
In step 3, the Popup will be displayed off the center of the Window where the Popup is displayed.
[Case3]
Launch apps uploaded to GitHub on Windows
Set HorizontalOptions to Start, VerticalOptions to End
Press Show Popup2 button
In step 3, the Popup is displayed beyond the display range of the Window that is the Popup's display source.
[Case 4]
Launch apps uploaded to GitHub on Windows
Set HorizontalOptions to End, VerticalOptions to Center
Press Show Popup3 button
Resize window
In step 4., the position of the Popup does not change according to the resizing of the Window that displays the Popup.
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
On Windows, even if you specify the Popup's Size property, the Popup's Content size takes precedence.
Layout as follows.
The execution result is as follows.
The Popup's Content Size exceeds the Size specified in the Popup's Size property.
On Android and iOS, the size specified in the Popup's size property takes precedence.
However, it takes precedence as long as it does not exceed the size of its parent.
Next, layout as follows.
This is the result of changing HorizontalOptions and VerticalOptions.
HorizontalOptions = "Start" VerticalOptions = "Center"
HorizontalOptions = "Center" VerticalOptions = "Center"
HorizontalOptions = "End" VerticalOptions = "Center"
HorizontalOptions = "Start" VerticalOptions = "End"
HorizontalOptions = "Center" VerticalOptions = "End"
HorizontalOptions = "End" VerticalOptions = "End"
The red line in the execution result is the horizontal and vertical center.
As you can see from the execution result, when VerticalOptions is Center, the vertical position is off center.
Also, if VerticalOptions is End, it will not be displayed to fit in the Popup's Parent.
Next, layout as follows.
The following are the execution results before and after resizing the Window that displays the Popup.
The position of the Popup is not changed according to the resizing of the Window that displays the Popup.
Expected Behavior
I expected the following.
Steps To Reproduce
The steps to reproduce are as follows.
For the source code downloaded from github, be sure to refer to the latest main project of CommunityToolkit.
[Case1]
In step 3, the content of the Popup is displayed beyond the size specified in the Size property of the Popup.
[Case2]
In step 3, the Popup will be displayed off the center of the Window where the Popup is displayed.
[Case3]
In step 3, the Popup is displayed beyond the display range of the Window that is the Popup's display source.
[Case 4]
In step 4., the position of the Popup does not change according to the resizing of the Window that displays the Popup.
Link to public reproduction project repository
https://github.com/cat0363/MauiComm-IssuePopupWindows.git
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: