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

mapView.contentInset is incorrectly set #15198

Closed
pappalar opened this issue Jul 23, 2019 · 3 comments
Closed

mapView.contentInset is incorrectly set #15198

pappalar opened this issue Jul 23, 2019 · 3 comments
Labels
archived Archived because of inactivity bug Core The cross-platform C++ core, aka mbgl iOS Mapbox Maps SDK for iOS

Comments

@pappalar
Copy link

pappalar commented Jul 23, 2019

Probably related to #4352

Steps to reproduce

  1. Set the map in a viewController
  2. Resize the viewController Bounds with Autolayout animated

Expected behavior

  • at the end of the autolayout animation, the content inset of the map is 0

Actual behavior

  • The content inset of the map is equal to half of the constraint changed.

example:

The mapViewcontroller is 400 px height.
contentInset is 0

A new controller changes the map size as in #4352 and pushes the bottom constraint of the map up 200 px.

The map is now 200 px height.

The expected behaviour is that the map with the new size has also contentInset = 0

However the new map has contentInset = (0,0,100,0)

Resetting the constraint of the map to zero brings back the size to 400px..

however the new map has content inset inverted to the animation = (100,0,0,0)

Configuration

Mapbox SDK versions: 5.2.0-beta.1
iOS/macOS versions: iOS 12

@friedbunny friedbunny added bug iOS Mapbox Maps SDK for iOS labels Jul 23, 2019
@1ec5
Copy link
Contributor

1ec5 commented Jul 26, 2019

Related to #15233?

@chloekraw chloekraw added the Core The cross-platform C++ core, aka mbgl label Aug 21, 2019
@stale stale bot added the archived Archived because of inactivity label Feb 17, 2020
@stale
Copy link

stale bot commented Feb 17, 2020

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Feb 17, 2020
@pappalar
Copy link
Author

up

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived Archived because of inactivity bug Core The cross-platform C++ core, aka mbgl iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

4 participants