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

Fix cosmetic issues in PopupViewer on small screens #531

Merged
merged 1 commit into from Nov 8, 2023

Conversation

mstefarov
Copy link
Collaborator

@mstefarov mstefarov commented Nov 6, 2023

For dotnet-api#11813

Improve appearance of PopupViewer sample on small screens by allowing height smaller than 400 dips, and by slightly reducing margins. In a more complex app, margins would probably be adjusted by VisualState triggers, but this compromise value keeps things looking decent on all screens.

Before:
2023-11-06_151804 qemu-system-x86_64

After:
2023-11-06_153647 qemu-system-x86_64

@mstefarov mstefarov requested a review from duffh November 6, 2023 23:20
<Grid>
<esriTK:PopupViewer x:Name="popupViewer" Padding="20" MaximumWidthRequest="400" HeightRequest="400" PopupAttachmentClicked="popupViewer_PopupAttachmentClicked" />
<esriTK:PopupViewer x:Name="popupViewer" Padding="12" MaximumWidthRequest="400" MaximumHeightRequest="400" PopupAttachmentClicked="popupViewer_PopupAttachmentClicked" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you try this on all platforms? I seem to recall there's a reason we're using HeightRequest and not MaximumHeightRequest

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I now tested on all platforms, and the updated layout works well everywhere.

@mstefarov mstefarov merged commit 6bd4e83 into main Nov 8, 2023
1 check passed
@mstefarov mstefarov deleted the matvei/popup-sample-cosmetic-fix branch November 8, 2023 17:41
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

Successfully merging this pull request may close these issues.

None yet

3 participants