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

3697 compass insets #4219

Closed
wants to merge 3 commits into from
Closed

Conversation

RomainQuidet
Copy link
Contributor

Updating position of compass, logo and attribution button according to the contentInsets.
The contentInsets by default is already defined by the top and bottom layout guides, so this PL simplifies the code.
Less constraints update is also better for speed. Compass size does not need to be updated each time.

Romain Quidet added 3 commits March 7, 2016 11:20
… button to follow the contentInset (which is using the top and bottom layout guides by default).
@postmechanical
Copy link

@boundsj Any progress on this one? Will it make the ios-v3.3.0 release?

@boundsj
Copy link
Contributor

boundsj commented Jul 6, 2016

@postmechanical the changelog for 3.3.0 is already very large and we want to focus on getting what is already in that release shipped as soon as possible. We can land this PR in a followup patch release.

@pveugen pveugen modified the milestones: ios-v3.3.1, ios-v3.4.0 Jul 7, 2016
@boundsj boundsj self-assigned this Jul 11, 2016
toItem:nil
attribute:NSLayoutAttributeNotAnAttribute
multiplier:1
constant:_compassView.image.size.height];
Copy link
Contributor

@frederoni frederoni Jul 12, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These constraints never gets added to a view and there's no other reference to them so ARC will have them removed immediately. They're also unnecessary since the UIImageView is initialized with -initWithImage which will handle the size in -intrinsicContentSize IIRC. This also means that line: 374 _compassView.frame = CGRectMake(... is redundant and can be removed.

@frederoni
Copy link
Contributor

Closing this in favour of #5671

@frederoni frederoni closed this Jul 13, 2016
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.

7 participants