diff options
author | Tim Watson <tewatson89@gmail.com> | 2019-03-19 15:39:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-19 15:39:38 -0700 |
commit | ba2b7a74c420856401d344ff15b27771175c9819 (patch) | |
tree | 71f5c6ac91991edbf3220310251e8c5002841e3d | |
parent | 56954e06c39da6ddeae55701f10941d6e22977ff (diff) | |
download | qtlocation-mapboxgl-ba2b7a74c420856401d344ff15b27771175c9819.tar.gz |
Use contentInset for visibleCoordinateBounds for macOS
-rw-r--r-- | platform/macos/src/MGLMapView.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm index 320abf740c..911d254889 100644 --- a/platform/macos/src/MGLMapView.mm +++ b/platform/macos/src/MGLMapView.mm @@ -1283,7 +1283,7 @@ public: } - (MGLCoordinateBounds)visibleCoordinateBounds { - return [self convertRect:self.bounds toCoordinateBoundsFromView:self]; + return [self convertRect:UIEdgeInsetsInsetRect(self.bounds, self.contentInset) toCoordinateBoundsFromView:self]; } - (void)setVisibleCoordinateBounds:(MGLCoordinateBounds)bounds { |