Address PR comment, width and highed were unintentionally switched in iOS7 code, the whole block is deleted as we dont support iOS7 now

This commit is contained in:
Panayot Cankov
2017-03-08 11:52:40 +02:00
parent 6d6564af16
commit bd7648ff27

View File

@@ -37,12 +37,6 @@ export module ios {
superViewRotationRadians = atan2f(superview.transform.b, superview.transform.a); superViewRotationRadians = atan2f(superview.transform.b, superview.transform.a);
} }
if (utils.ios.MajorVersion < 8 && utils.ios.isLandscape() && !superViewRotationRadians) {
// in iOS 7 when in landscape we switch width with height because on device they don't change even when rotated.
width = utils.layout.toDevicePixels(size.width);
height = utils.layout.toDevicePixels(size.height);
}
var origin = parentBounds.origin; var origin = parentBounds.origin;
var left = origin.x; var left = origin.x;
var top = origin.y; var top = origin.y;