Explore the community Forums Lectora Lectora Questions & Answers Change contents = turn off vertical scroll Reply To: Change contents = turn off vertical scroll

#387879 Score: 0
Profile photo of CarlFink
LUC16 Attendee
wise owl
curious george
friend finder
41 pts

When I have a textblock Lectora 17.1.3 with “Vertical Scroll” checked, it will have overflow-x:hidden and overflow-y:auto. It seems to work alright with Change Contents actions both directions, i.e. changing from text with scrollbar to shorter text and vice versa.

The earliest moment to change the content would be to either use an “On: Page show” action at the textfield or to use inline variable replacement by prepopulating your field with “VAR(your_variable)”


Thanks, Tim. I was not aware of separate overflow-x and overflow-y attributes, and I’ll see if those work, if I ever go back to using JavaScript. If I can use built-in stuff in Lectora it’s way easier. I don’t really know JavaScript and I’m learning another programming language now. Learning two at once will inevitably result in my getting confused.

I tried both OnPageShow and the variable technique. Neither updates the contents of the field until you navigate. However navigation back to the page you are on works and is extremely fast, so I can use that without a problem. It happens so fast that page audio doesn’t even start before the page reloads. There isn’t even a visible flicker.