Skip to content

Fixes initial frame issue#19

Open
dtrotzjr wants to merge 1 commit intothibault-carpentier:masterfrom
dtrotzjr:fix/slideIn
Open

Fixes initial frame issue#19
dtrotzjr wants to merge 1 commit intothibault-carpentier:masterfrom
dtrotzjr:fix/slideIn

Conversation

@dtrotzjr
Copy link

The first time the Message Banner is shown it slides in from an arbitrary position at the top left. As far as I can tell this is due to the constraints being applied outside of the animation block.

Also setting currentMessageBanner.center = target is really not needed as this is using constraints which override setting the center anyway. I would drop setting currentMessageBanner.center = target as well as calculateTargetCenter: altogether except that there are side effects in calculateTargetCenter: which are needed.

The first time the Message Banner is shown it slides in from an arbitrary position at the top left. As far as I can tell this is due to the constraints being applied outside of the animation block.

Also setting `currentMessageBanner.center = target` is really not needed as this is using constraints which override setting the center anyway. I would drop setting `currentMessageBanner.center = target`  as well as `calculateTargetCenter:` altogether except that there are side effects in `calculateTargetCenter:` which are needed.
@thibault-carpentier
Copy link
Owner

Thanks for the PR, il will merge a rework the center value during this weekend.

@dctrotz
Copy link

dctrotz commented Oct 28, 2015

Awesome! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments