sobri909 / MGBoxKit

Simple, quick iOS tables, grids, and more
Other
1.79k stars 283 forks source link

fixedPosition doesn't work for x coordinates #94

Open mrtibs2000 opened 11 years ago

mrtibs2000 commented 11 years ago

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 commented 11 years ago

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.