David Mott
Posts: 0
Joined: Tue Apr 29, 2014 4:26 pm

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

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

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

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

Return to “Issues”