question: private void fitSizeOfScrolledContent ( ) { Point p = scrollComposite . getSize ( ) ; main . setSize ( main . computeSize ( p . x , SWT . DEFAULT ) ) ; }
target:  Fits the width of the main composite to the same width scrolled composite was given.