Permalink
Browse files

Fix minor typo in PixelRatio.md

Summary:
iphone -> iPhone
Closes #11802

Differential Revision: D4397404

fbshipit-source-id: 116fe8b52de2a1db884ed10863cb1835304f8efb
  • Loading branch information...
Kerumen authored and facebook-github-bot committed Jan 10, 2017
1 parent 453e70d commit a1d77af07cd4fb230b838b6981d049c882421554
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/PixelRatio.md
View
@@ -1,6 +1,6 @@
## Pixel Grid Snapping
In iOS, you can specify positions and dimensions for elements with arbitrary precision, for example 29.674825. But, ultimately the physical display only have a fixed number of pixels, for example 640×960 for iphone 4 or 750×1334 for iphone 6. iOS tries to be as faithful as possible to the user value by spreading one original pixel into multiple ones to trick the eye. The downside of this technique is that it makes the resulting element look blurry.
In iOS, you can specify positions and dimensions for elements with arbitrary precision, for example 29.674825. But, ultimately the physical display only have a fixed number of pixels, for example 640×960 for iPhone 4 or 750×1334 for iPhone 6. iOS tries to be as faithful as possible to the user value by spreading one original pixel into multiple ones to trick the eye. The downside of this technique is that it makes the resulting element look blurry.
In practice, we found out that developers do not want this feature and they have to work around it by doing manual rounding in order to avoid having blurry elements. In React Native, we are rounding all the pixels automatically.

0 comments on commit a1d77af

Please sign in to comment.