Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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?

— asked October 20th 2010 by Patrick van Zadel
  • app
  • ipad
  • label
  • scrollview
0 Comments

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

    — answered October 20th 2010 by Dan Tamas
    permalink
    0 Comments
  • 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

    — answered October 20th 2010 by Patrick van Zadel
    permalink
    0 Comments
  • 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

    — answered October 20th 2010 by Dan Tamas
    permalink
    0 Comments
  • 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..

    — answered October 20th 2010 by Patrick van Zadel
    permalink
    0 Comments
  • 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.

    — answered October 20th 2010 by Dan Tamas
    permalink
    0 Comments
  • 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=gxCukeT5rWg

    Thnx Tamas!

    — answered October 21st 2010 by Patrick van Zadel
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.