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(platform): account for larger tablets #17630

Merged
merged 13 commits into from Mar 15, 2019
Merged

fix(platform): account for larger tablets #17630

merged 13 commits into from Mar 15, 2019

Conversation

liamdebeasi
Copy link
Member

@liamdebeasi liamdebeasi commented Feb 27, 2019

Short description of what this resolves:

This PR fixes an issue where platform.is('tablet') would return false for larger tablets such as the iPad Pro and the Galaxy View.

Note: There are still edge cases this PR misses, but the purpose of this PR is to bring support to some of the more common platforms (large iOS and Android tablets, specifically). I think the ideal fix requires some re-thinking of how we do platform detection, so I've created a feature request for it here: #17631

Changes proposed in this pull request:

  • Add additional checks to isTablet to see if platform is iPad or Android tablet. Fall back to old detection method if not.

Ionic Version:

Fixes: #15434

@ionitron-bot ionitron-bot bot added the package: core @ionic/core package label Feb 27, 2019
@liamdebeasi liamdebeasi marked this pull request as ready for review February 27, 2019 18:34
@brandyscarney
Copy link
Member

Going to tag @adamdbradley for review on this one as I know there were some issues with tablet sizes before.

@liamdebeasi liamdebeasi merged commit 29dbd07 into master Mar 15, 2019
@liamdebeasi liamdebeasi deleted the platform branch March 15, 2019 17:49
kiku-jw pushed a commit to kiku-jw/ionic that referenced this pull request May 16, 2019
* fix(platform): account for larger tablets

* lint files

* add utils file, clean up tests, add more tests

* update tests with extra desktop checks

* change window to win
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants