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

fixedPosition doesn't work for x coordinates #94

Open
mrtibs2000 opened this issue Aug 15, 2013 · 1 comment
Open

fixedPosition doesn't work for x coordinates #94

mrtibs2000 opened this issue Aug 15, 2013 · 1 comment

Comments

@mrtibs2000
Copy link

I'm not sure if this is a bug or it's by design, but when you set a box with MGBoxLayoutFixedPosition and then set the fixedPosition to a CGPoint, the box is drawn correct vertically, but not horizontally - in other words it stays stuck to the left side of the screen.

I took a look in MGScrollView.m and at line 100 in layoutSubviews, only the y coordinates are updated. The fix looks simple enough, but will this disrupt other functionality?

Thanks,
Tiberiu

@sobri909
Copy link
Owner

Is this for a scroll view that scrolls horizontally? Fixed position was never tested for those, so it's highly likely that never worked. So yeah, sounds like a bug if that's the case.

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

No branches or pull requests

2 participants