diff options
author | Nadia Barbosa <nadiabarbosa@me.com> | 2019-04-01 17:20:12 -0700 |
---|---|---|
committer | Nadia Barbosa <nadiabarbosa@me.com> | 2019-04-01 17:20:12 -0700 |
commit | 8beb49e5f85f3ef02ba245b0273ffe942cba165b (patch) | |
tree | 8851f4703a2771a7fa14063e1cf90f0461f0fdab | |
parent | 24361fef304560b86df14354a2119ac20b068724 (diff) | |
download | qtlocation-mapboxgl-upstream/nb/jrex/14232-work-around_v1.tar.gz |
debug thingsupstream/nb/jrex/14232-work-around_v1
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 89fc1e8fab..085faa006b 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -1255,7 +1255,7 @@ public: { [super didMoveToWindow]; - if (self.window) + if (self.superview) { // See above comment CAEAGLLayer *eaglLayer = MGL_OBJC_DYNAMIC_CAST(_glView.layer, CAEAGLLayer); @@ -1272,6 +1272,10 @@ public: [super didMoveToSuperview]; } +- (void) willMoveToSuperview:(UIView *)newSuperview { + // ? +} + - (void)refreshSupportedInterfaceOrientationsWithWindow:(UIWindow *)window { // "The system intersects the view controller's supported orientations with |