From 13c6648713a14afaad7551e023b0d61318ada765 Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Thu, 20 Oct 2016 16:53:00 -0400 Subject: [PATCH] [ios] Make map view UI elements' constraints unambiguous NSLayoutRelationGreaterThanOrEqual meant that it either greater-than or equal could satisify the constraint, when really all we need is equal. --- platform/ios/src/MGLMapView.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 39f243f57..8cd9fea64 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -776,7 +776,7 @@ public: [self.compassViewConstraints addObject: [NSLayoutConstraint constraintWithItem:compassContainer attribute:NSLayoutAttributeTop - relatedBy:NSLayoutRelationGreaterThanOrEqual + relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeTop multiplier:1 @@ -819,7 +819,7 @@ public: [self.logoViewConstraints addObject: [NSLayoutConstraint constraintWithItem:self attribute:NSLayoutAttributeBottom - relatedBy:NSLayoutRelationGreaterThanOrEqual + relatedBy:NSLayoutRelationEqual toItem:self.logoView attribute:NSLayoutAttributeBaseline multiplier:1 @@ -843,7 +843,7 @@ public: [self.attributionButtonConstraints addObject: [NSLayoutConstraint constraintWithItem:self attribute:NSLayoutAttributeBottom - relatedBy:NSLayoutRelationGreaterThanOrEqual + relatedBy:NSLayoutRelationEqual toItem:self.attributionButton attribute:NSLayoutAttributeBaseline multiplier:1