Community
Participate
Working Groups
},
setScrollBarsVisible : function( horzVisible, vertVisible ) {
if( !horzVisible ) {
this._horzScrollBar.setValue( 0 );
}
this._horzScrollBar.setVisibility( horzVisible );
if( !vertVisible ) {
this._vertScrollBar.setValue( 0 );
this._vertScrollBar.setVisibility( vertVisible );
this._layoutX();
this._layoutY();
assertTrue( tree._vertScrollBar.getVisibility() );
tree.destroy();
testSetScrollBarsVisibileResetValue : function() {
var testUtil = org.eclipse.rwt.test.fixture.TestUtil;
var tree = this._createDefaultTree();
tree.setScrollBarsVisible( true, true );
testUtil.flush();
tree._horzScrollBar.setValue( 10 );
tree._vertScrollBar.setValue( 10 );
tree.setScrollBarsVisible( false, false );
assertEquals( 0, tree._horzScrollBar.getValue() );
assertEquals( 0, tree._vertScrollBar.getValue() );
testVerticalScrollBarLayout : function() {