-
Notifications
You must be signed in to change notification settings - Fork 572
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
UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleLeftMargin resize mask not working properly #82
Comments
Not sure if removing the floorf() is a great solution, as it will cause views to be rendered on half pixels. |
Rendering on half pixels isn't possible? Fairly sure you want to keep the precision in your views' frames. It's working fine for me. |
it's possible, but it will be slower. |
I'm encountering this issue as well. I think the best solution would be to rework the autoresizing logic in UIView.m to always base the autoresized frame (& bounds?) on an internal "original frame" CGRect rather than I tried hacking up that solution but couldn't get it to work. :( Maybe someone else wants to take a stab at it? In the meantime, removing the |
The floorf() call causes the view to slowly drift away from where it should be if you resize the superview over and over. Removing the floorf() call solves the problem for me.
The text was updated successfully, but these errors were encountered: