Skip to content

fix(platform): account for larger tablets - #17630

Merged
liamdebeasi merged 13 commits into
masterfrom
platform
Mar 15, 2019
Merged

liamdebeasi merged 13 commits into
masterfrom
platform

Conversation

@liamdebeasi

@liamdebeasi liamdebeasi commented Feb 27, 2019 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

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

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.

2 participants