Skip to content

Platform code for CategoryPage CollectionView span #1479

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

Merged
merged 4 commits into from
Jul 22, 2024

Conversation

williambohrmann3
Copy link
Collaborator

Description

  • Adds Android-specific style to allow span to be set upon device orientation state change. Previously, there was excessive whitespace when using an Android tablet.
  • Prevents unnecessary resetting of layout on Mac, for example, when changing app height.

Type of change

  • Sample viewer enhancement

Platforms tested on

  • MAUI WinUI
  • MAUI Android
  • MAUI iOS
  • MAUI MacCatalyst

Checklist

  • Self-review of changes
  • All changes work as expected on all affected platforms
  • There are no warnings related to changes
  • Code is commented and follows .NET conventions and standards
  • No unrelated changes have been made to any other code or project files

williambohrmann3 and others added 4 commits July 16, 2024 14:47
Adds a style which responds to orientation state changes, updating the items layout of the collection. Intended to fix an Android-specific bug with our CollectionView span.

Co-Authored-By: Hamish Duff <[email protected]>
Android layout changes working bug-free using style. Other platforms layout changes have been working fine, just subtly refactored code here for readability.
Only reset layout when column count actually changes. This should be a big performance gain when resizing app height on Mac. More often than not on iOS, column count does change.
@williambohrmann3 williambohrmann3 marked this pull request as ready for review July 19, 2024 22:16
@williambohrmann3 williambohrmann3 requested a review from duffh July 19, 2024 22:16
Copy link
Collaborator

@duffh duffh left a comment

Choose a reason for hiding this comment

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

lgtm

@williambohrmann3 williambohrmann3 merged commit 8ddbdcb into main Jul 22, 2024
6 checks passed
@williambohrmann3 williambohrmann3 deleted the hduff+wbohr/CategoryPage-CollectionView branch July 22, 2024 16:56
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.

2 participants