Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[ios] Content insets border case fix and comment. #14795

Merged
merged 1 commit into from
Jun 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions platform/ios/src/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3552,9 +3552,12 @@ - (void)_setVisibleCoordinates:(const CLLocationCoordinate2D *)coordinates count
});
};
}


// Padding is baked in adjusted camera center (in cameraForLatLngs) and
// cameraOptions.padding at this point is (0, 0, 0, 0) and we don't need to
// check if cameraOptions.contentInsets are equal to contentInsets.
MGLMapCamera *camera = [self cameraForCameraOptions:cameraOptions];
if ([self.camera isEqualToMapCamera:camera] && UIEdgeInsetsEqualToEdgeInsets(_contentInset, insets))
if ([self.camera isEqualToMapCamera:camera])
{
if (completion)
{
Expand Down