You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
MGLMapView contentInset top is ignored for compass positioning #11068
We have been using contentInset.top to position the compass on our MGLMapView, in order to move it out of the way of some other views that we place on top of the map view. This has worked fine until recently, but was broken in Mapbox 3.7.2.
Steps to trigger behavior
Our usage looks like this: (Swift; edited for clarity)
@julianrex Confirmed, automaticallyAdjustsScrollViewInsets was set to NO. The problem occurs whether this is set to NO or YES. I also confirmed it still occurs under Mapbox 4.5.0.
Activity
RobertSasak commentedon May 19, 2018
Is there any workaround?
julianrex commentedon Nov 6, 2018
@dmdeller can you confirm that
automaticallyAdjustsScrollViewInsetswas set toNO?dmdeller commentedon Nov 8, 2018
@julianrex Confirmed,
automaticallyAdjustsScrollViewInsetswas set toNO. The problem occurs whether this is set toNOorYES. I also confirmed it still occurs under Mapbox 4.5.0.julianrex commentedon Nov 14, 2018
Making a note that the ideal solution here should involve integrating the Adopt layout anchors #12147 PR.
julianrex commentedon Feb 28, 2019
Noting that this issue should be addressed by #13911 which is currently in review. /cc @chloekraw
julianrex commentedon Mar 21, 2019
@dmdeller #13911 has now merged and will be available in an upcoming release. This is the supported mechanism for moving "ornaments" like the compass.
I'm going to close this issue, but please reopen if necessary!