Text and a scrollView.
Hey people I'm trying to have a scrollableView with only text.
It should only scroll up and down.
But somehow the scroll works, but the text doesn't go up and down.
My code now:
http://pastie.org/1235387
This should work, shouldn't it?
6 Answers
-
remove the '' around the numbers so:
contentWidth:'280' to contentWidth:280
and try to set a top:0 and left:0 to infoText.
let me know
-
the top and left did something, the text now stands against the side.
but the text doesnt scroll still.
I can see the scrollview scrolling cause the bar on the right shows its scrolling but the text doesnt go along with it
-
Maybe the text is not enough? and you see the scrollview moving but don't get to the text?
Set the top to 0 and leave the height to 'auto' for infoText.
This way the text should align to the top of the scrollview -
EDIT: sorry double post
anyway here is the problem in visual
http://www.youtube.com/watch?v=QBaY7dn-Ygs
dont mind the aspect ratio.
As you can see the scrollView "works" but the text inside doesnt scroll while it's longer then showed there..
-
mmm, not sure but can you put the label in the popup without the scrollview, I might be wrong but I think the popup should manage by itself the scrolling in this case.
-
Hey I got it to work in a different way.
After a little meeting we redesigned the Popovers and now I used Tamas his tutorial on custom tooltips.
Created a custom popOver.
Created a seperate scrollView and in that a view with labels.Animate the scrollview the same as the popover and it works like a charm.
Video of how it looks now:
http://www.youtube.com/watch?v=gxCukeT5rWgThnx Tamas!