summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Guerra <fabian.guerra@mapbox.com>2017-12-21 10:44:16 -0600
committerFabian Guerra <fabian.guerra@mapbox.com>2017-12-21 10:44:16 -0600
commit0da3aaa76c3e02da62637a7609a1de97496ff70e (patch)
tree54de7bfce59e83d7dd458650ba0f59ca2ecced52
parent8e69a35d758d4fa632ed153590ae56c976269b76 (diff)
downloadqtlocation-mapboxgl-upstream/fabian-ios10-insets-10773.tar.gz
[ios] Fix ornament constrains on iOS 10upstream/fabian-ios10-insets-10773
-rw-r--r--platform/ios/src/MGLMapView.mm5
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index 3b6ea82ed2..a0d4a5f364 100644
--- a/platform/ios/src/MGLMapView.mm
+++ b/platform/ios/src/MGLMapView.mm
@@ -747,7 +747,7 @@ public:
toItem:viewController.topLayoutGuide
attribute:NSLayoutAttributeBottom
multiplier:1.0
- constant:5.0 + self.contentInset.top]];
+ constant:5.0]];
}
[self.compassViewConstraints addObject:
[NSLayoutConstraint constraintWithItem:self.compassView
@@ -757,6 +757,7 @@ public:
attribute:NSLayoutAttributeTop
multiplier:1.0
constant:5.0 + self.contentInset.top]];
+
[self.compassViewConstraints addObject:
[NSLayoutConstraint constraintWithItem:self
attribute:NSLayoutAttributeTrailing
@@ -781,7 +782,7 @@ public:
toItem:viewController.topLayoutGuide
attribute:NSLayoutAttributeBottom
multiplier:1.0
- constant:5.0 + self.contentInset.top]];
+ constant:5.0]];
}
[self.scaleBarConstraints addObject:
[NSLayoutConstraint constraintWithItem:self.scaleBar