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

Update frame size when changing dot/puck mode - #4832

Merged
friedbunny merged 1 commit into
masterfrom
fb-user-dot-frame-update-4823
Apr 25, 2016
Merged

friedbunny merged 1 commit into
masterfrom
fb-user-dot-frame-update-4823

Conversation

@friedbunny

@friedbunny friedbunny commented Apr 25, 2016 •

Copy link
Copy Markdown
Contributor

dotpuck

The user dot/puck was keeping whichever frame size it was initialized with. This had no apparent ill effects, except that the accessibility frame would be incorrect when the user location annotation type changed.

  • Updates the accessibility frame (by proxy) when changing between dot and puck
  • Keeps the same center point while updating the frame
  • updateFrameWithSize: does not take CGSize because there is not yet
    support for non-square user location annotations

Fixes #4823.

/cc @1ec5

@friedbunny friedbunny self-assigned this Apr 25, 2016
@friedbunny friedbunny added bug iOS Mapbox Maps SDK for iOS labels Apr 25, 2016
@friedbunny friedbunny added this to the ios-v3.3.0 milestone Apr 25, 2016
@1ec5

1ec5 commented Apr 25, 2016

Copy link
Copy Markdown
Contributor

Nice! This also means we had a bug in 3.2.0 where the puck’s hit target was too small. This happens to be fixed on master because we now hit test against the presentation layer rather than the view itself.

@friedbunny
friedbunny force-pushed the fb-user-dot-frame-update-4823 branch from 588e747 to 2b45b90 Compare April 25, 2016 20:47
- Keeps the same center point
- `updateFrameWithSize:` does not take CGSize because there is not yet
  support for non-square user location annotations
@friedbunny
friedbunny force-pushed the fb-user-dot-frame-update-4823 branch from 2b45b90 to 8ce0fb4 Compare April 25, 2016 21:22
@friedbunny
friedbunny merged commit 8ce0fb4 into master Apr 25, 2016
@friedbunny
friedbunny deleted the fb-user-dot-frame-update-4823 branch April 25, 2016 21:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug iOS Mapbox Maps SDK for iOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants