Page 1 of 1

How do I get my text boxes to scroll through the text?

Posted: Wed Apr 30, 2014 11:17 pm
by David Mott

How do I get my text boxes to scroll through the text? Image


How do I get my text boxes to scroll through the text?

Posted: Thu May 01, 2014 12:02 am
by Yurii Orishchuk

Hi David.

What do you mean by "text box" ? This is textarea or label component?

Anyway. If you want to add scrollbar to your label you should to add css class name to this component. Add css asset and fill it with following code:

pre
code

/* yourLabelClassName - is your component className */
.yourLabelClassName{
height: 40px;
overflow: auto;
}

/code
/pre

Note you need to adjust height with your needs.

Also if you want to scroll with JS inside the label or textarea you can use code below:

pre
code

//"mobilelabel_35" - your component name.
//33 - scroll pixels from top of the component
Appery("mobilelabel_35")[0].scrollTop = 33;

/code
/pre

Regards