Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical layout issues #25

Closed
AnasMostefaoui opened this issue Mar 23, 2016 · 1 comment
Closed

Vertical layout issues #25

AnasMostefaoui opened this issue Mar 23, 2016 · 1 comment

Comments

@AnasMostefaoui
Copy link

Hello,

i've noticed that the button y positions changed slightly after the first menu open, in the version 1.2.1 of the KCFloatingActionButton.
the following picture show the menu opened the first time since the view did apear :
screen shot 2016-03-23 at 22 00 49

closing the menu, then reopen it give the following result :
screen shot 2016-03-23 at 22 01 06
one can notice in the second picture, has the button items higher than the first one.

the code responsible for this issue is located in KCFloatingActionButton's open() method :
item.frame.origin.y = -itemHeight item.layer.transform = CATransform3DMakeScale(0.4, 0.4, 1)
inverse the order of the instruction, to fix this issue :
item.layer.transform = CATransform3DMakeScale(0.4, 0.4, 1) item.frame.origin.y = -itemHeight

@kciter
Copy link
Owner

kciter commented Mar 25, 2016

Hello @AnasMostefaoui.
Solved on 1.3.0 version. Thanks.

@kciter kciter closed this as completed Mar 25, 2016
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

No branches or pull requests

2 participants