mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user