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.
[ios] Scalebar position and size is incorrect #13873
#13556 introduced new ornament placement, which unfortunately has affected the position and size of the MGLScaleBar.
#13870 proposes reverting the PR until this can be fixed, but this ticket should be used to document the specific issues.
Zooming in/out changes the position and width of the scale bar, as does rotating the device.
Looking in the view debugger you can see width and height constraints, but none for the position (it looks like size is handled by the "intrinsic content size" - so perhaps this is changing?). Looking in the debugger where the constraints are installed - you do see them listed in the parent view.
@julianrex Thanks for investigating the issue. I found it was caused by this commit 2f2886c#diff-20502b6bc02986a4398d0da84b2d4b94L915 . I removed width and height constraints by mistake. The issue affacts iOS 11+ but I just tested iOS9.
I'll fix the issue on branch lloyd-ui-position and have a full manual test like this #13556 (comment) before create a PR.
Activity
lloydsheng commentedon Feb 11, 2019
@julianrex Thanks for investigating the issue. I found it was caused by this commit 2f2886c#diff-20502b6bc02986a4398d0da84b2d4b94L915 . I removed width and height constraints by mistake. The issue affacts iOS 11+ but I just tested iOS9.
I'll fix the issue on branch
lloyd-ui-positionand have a full manual test like this #13556 (comment) before create a PR./cc @fabian-guerra @chriswu42
julianrex commentedon Feb 11, 2019
Thanks for looking at this so quickly @lloydsheng! We'll plan to review and merge so that it hits the next beta!