Bug 200916 Drag the sash in dataset editor dialog will lead the buttons hidden[07]
Description: Drag the sash in dataset editor dialog will lead the buttons hidden[07] Build number: 2.2.1.v20070823-0630 Steps to reproduce: 1, New a dataset 2, Turn to dataset parameter page 3, Drag the SASH in dataset 4, Check the New button on the right of the page Expected result: The New button isn't hidden Actual result: The New button is hidden by dragging the sash
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/data/ui/property/AbstractPropertyDialog.java
/**
	 * 
	 * @param sash
	 * @param parent
	 * @param left
	 * @param right
	 */
	private void addDragListerner( final Sash sash, final Composite parent,
			final Control left, final Control right )
	{
		sash.addListener( SWT.Selection, new Listener( ) {
			public void handleEvent( Event event )
			{
				if ( event.detail == SWT.DRAG )
				{
					return;
				}
				Sash sash = (Sash) event.widget;
				int shift = event.x - sash.getBounds( ).x;
				GridData data = (GridData) left.getLayoutData( );
				int newWidthHint = data.widthHint + shift;
				if ( newWidthHint < 20 )
				{
					return;
				}
				Point computedSize = parent.computeSize( SWT.DEFAULT,
						SWT.DEFAULT );
				Point currentSize = parent.getSize( );