From: Richard Moe Gustavsen Date: Fri, 7 Aug 2015 09:01:09 +0000 (+0200) Subject: iOS: calculate bounds in desktop view using transformed window bounds for both width... X-Git-Tag: v5.5.90+alpha1~18^2^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2518c4c9079efdaa10f33c3c049f62f0c0c44373;p=platform%2Fupstream%2Fqtbase.git iOS: calculate bounds in desktop view using transformed window bounds for both width and height Depending on the orientation, UIKit might shrink either the width or the height of the view to fit the status bar. Since we anyway want the view to fill the whole window, we simply ignore this, and use the bounds of the whole window directly. Task-number: QTBUG-47506 Change-Id: I73294e5792f8d98fb0c0b0a42198207baca08e3c Reviewed-by: Tor Arne Vestbø --- diff --git a/src/plugins/platforms/ios/qiosviewcontroller.mm b/src/plugins/platforms/ios/qiosviewcontroller.mm index 6667ec3dd8..a7068b9246 100644 --- a/src/plugins/platforms/ios/qiosviewcontroller.mm +++ b/src/plugins/platforms/ios/qiosviewcontroller.mm @@ -190,8 +190,9 @@ - (void)setBounds:(CGRect)newBounds { + Q_UNUSED(newBounds); CGRect transformedWindowBounds = [self convertRect:self.window.bounds fromView:self.window]; - [super setBounds:CGRectMake(0, 0, CGRectGetWidth(newBounds), CGRectGetHeight(transformedWindowBounds))]; + [super setBounds:CGRectMake(0, 0, CGRectGetWidth(transformedWindowBounds), CGRectGetHeight(transformedWindowBounds))]; } - (void)setCenter:(CGPoint)newCenter