From bd7648ff2766b5ff9bb8eeefa919ca9b9bbe3efe Mon Sep 17 00:00:00 2001 From: Panayot Cankov Date: Wed, 8 Mar 2017 11:52:40 +0200 Subject: [PATCH] Address PR comment, width and highed were unintentionally switched in iOS7 code, the whole block is deleted as we dont support iOS7 now --- tns-core-modules/ui/utils.ios.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tns-core-modules/ui/utils.ios.ts b/tns-core-modules/ui/utils.ios.ts index 0ef1cf164..b44c59eb3 100644 --- a/tns-core-modules/ui/utils.ios.ts +++ b/tns-core-modules/ui/utils.ios.ts @@ -37,12 +37,6 @@ export module ios { 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 left = origin.x; var top = origin.y;