JBIDE-17514 JBIDE-17425: Better handling of scroll

This fixes issue of scrollbar not being updated when
content of the scrolled composite is resized.