Repository navigation
[iOS] Using contentInset for setCenterCoordinate: and flyToCamera met… - #4067
RomainQuidet wants to merge 3 commits into
Conversation
|
If edgePaddingForFollowing doesn't include the content inset, it should. |
|
@1ec5 What do you mean it should? I thought the logic behind edgePaddingForFollowing was for a former usage, I simply replaced it by the contentInset as everywhere else in the mapView class. It's working according to my basic tests. |
|
|
|
I agree that - (UIEdgeInsets)edgePaddingForFollowing implementation is wrong and a little bit strange for me. mapbox-gl-native/platform/ios/src/MGLMapView.mm Line 1763 in 7b40cbc |
…mera methods everywhere." This reverts commit ccbdeaa.
|
correct edgePaddingForFollowing, using contentInset and vertical alignment. |
I agree. It seems to me like the fix should actually be ccbdeaa, the original commit in this PR. This rect created in Therefore, I think that Note: I'm using an orange, semi-transparent UIView to visualize the
|
|
OK, I’m convinced. 😄 Thanks for the visual verification. |
|
Subsumed by #6216 |
|
This caused a regression that reproduces when the user dot is top- or bottom-aligned: #6257. |




Using contentInset for setCenterCoordinate: and flyToCamera methods everywhere.