Skip to main content
OutSystems

How to limit the height of a div with inner scrolling

Question

Is it possible to contain a List Records control in a Container and bind its height?

If I set the List Records ListCount = 500, then I get 500 records displayed. I want the List Records to act like a list box with a specified height and with a scroll bar on the right side.

Answer

Use CSS to limit the height and set the overflow property to scroll.

For example, wrap the List Record in a container and create a style like the following:

myListRecordWrapper{
    height: 300px;
    overflow-y: scroll;
};
  • Was this article helpful?