How to let a layout or panel scroll

The requirement is simple that just display the vertical or horizontal scroll bar when the size of a layout or panel is not enough for a tree inside. I have tryed fixed size or full size of panel or layout, but failed.

Any suggestion?

Aha, find the answer:
overflow: auto