Panel enable only vertical scrolling

I’m trying to make vertical scrolling in panel containing only images in VerticalLayout.
Width of images is set to 100% to make them responsive with width of panel. In that case Panel has absolute height in the sum with heights of all containing images.

But documentation says [url=]

// To enable scrollbars, the size of the panel content
// must not be relative to the panel size


ny suggestions how to reach only Vertical scrolling with specified width of image within Panel?