[MonoTouch] SetContentOffset doesn't 'stick' on ScrollView?

jlindborg jlindborg2000 at gmail.com
Fri Dec 16 19:19:15 EST 2011


Ok – rookie question for the day.  I’m a bit confused as to the function of
SetContentOffset method on the ScrollView container – Most of my views are
just simple lists which snap out to the edge as you rotate and the screen
geometry changes – no problem – but a few have buttons/scrollers and such
and I have them on ScrollViews as you’d expect.  Everything works dandy
except when you rotate out of a portrait view everything’s shifted over to
the left a bit.  Again, no surprise.  Kick in the SetContentOffset that gets
called on the ViewDidLoad and Didrotate – the math is all correct and it all
looks correct – UNTIL you reach out and scroll… as soon as you scroll at all
it slides smoothly back over to the left.

What? I’m clearly missing something obvious here… 


--
View this message in context: http://monotouch.2284126.n4.nabble.com/SetContentOffset-doesn-t-stick-on-ScrollView-tp4206877p4206877.html
Sent from the MonoTouch mailing list archive at Nabble.com.


More information about the MonoTouch mailing list