PDA

View Full Version : optional padding with scrollbar only



unowen
24 May 2007, 5:30 AM
is there a way to add padding to a region (say in a border layout, east) ONLY when the scrollbar is present?

I want the padding to be there if the window is resized so that the content requires a scrollbar, but the padding should be removed if the window is resized so that the bar disappears.

Is there an easy way to do this or is this quite involved?