Adapt in what way? If you want it to cover a larger portion of the screen, then use the drag & drop example as your starting point. I have panels there that get anchored to the screen, and as you change the size of the screen, the scroll views shrink or grow accordingly.