mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Delete dead statusBarPadding iOS code (flutter/engine#39682)
This commit is contained in:
parent
5efd6934a5
commit
6cf3c90e27
@ -1284,15 +1284,6 @@ static flutter::PointerData::DeviceKind DeviceKindFromTouchType(UITouch* touch)
|
||||
}
|
||||
}
|
||||
|
||||
- (CGFloat)statusBarPadding {
|
||||
UIScreen* screen = self.view.window.screen;
|
||||
CGRect statusFrame = [UIApplication sharedApplication].statusBarFrame;
|
||||
CGRect viewFrame = [self.view convertRect:self.view.bounds
|
||||
toCoordinateSpace:screen.coordinateSpace];
|
||||
CGRect intersection = CGRectIntersection(statusFrame, viewFrame);
|
||||
return CGRectIsNull(intersection) ? 0.0 : intersection.size.height;
|
||||
}
|
||||
|
||||
- (void)viewDidLayoutSubviews {
|
||||
CGRect viewBounds = self.view.bounds;
|
||||
CGFloat scale = [UIScreen mainScreen].scale;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user