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
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
Started in this question/discussion #1188, it is intended to give the dev the ability to set margin for popup and thus giving more flexibility over popup position adjustment (in addition to VerticalOptions and VerticalOptions properties).
Let say you have a popup and want to position it in the bottom center with a slight vertical margin (space between bottom edge of the screen and the bottom edge of the popup), you will put:
Thanks for writing up this specification, I think this is the direction that we want to go. I think we should make the following adjustments to this specification.
Margin can be set only if the following conditions are met
With those properties set we can check in the renderer and then force the popup to take up all the bounds on the screen. Then you could use the Margin property to set the space between the edge of the popup and the edge of the screen.
@ahoefling I have updated the spec accordingly, so setting VerticalOptions and HorizontalOptions to FillAndExpand does not necessarily mean that the popup content will take the whole space (after the enhacement), it also depends on it content more specifically the root view, right?
We should consider the Size as well because if someone sets size, should we disregard VerticalOptions? and HorizontalOptions? Or if the VerticalOptions and HorizontalOptions are set to FillAndExpand should we disregard the size and make it full screen to start applying the margin.
This is going to merit more discussion to get the rules right in the specification
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[The feature]
Started in this question/discussion #1188, it is intended to give the dev the ability to set margin for popup and thus giving more flexibility over popup position adjustment (in addition to
VerticalOptions
andVerticalOptions
properties).API
[ BasePopup.shared.cs]
Properties
Scenarios
Let say you have a popup and want to position it in the bottom center with a slight vertical margin (space between bottom edge of the screen and the bottom edge of the popup), you will put:
Platform Compatibility
Backward Compatibility
Difficulty : [low/medium/high]
The text was updated successfully, but these errors were encountered: