Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 325933
Collapse All | Expand All

(-)js/org/eclipse/rwt/widgets/Tree.js (+6 lines)
Lines 292-298 Link Here
292
    },
292
    },
293
293
294
    setScrollBarsVisible : function( horzVisible, vertVisible ) {
294
    setScrollBarsVisible : function( horzVisible, vertVisible ) {
295
      if( !horzVisible ) {
296
        this._horzScrollBar.setValue( 0 );
297
      }
295
      this._horzScrollBar.setVisibility( horzVisible );
298
      this._horzScrollBar.setVisibility( horzVisible );
299
      if( !vertVisible ) {
300
        this._vertScrollBar.setValue( 0 );
301
      }
296
      this._vertScrollBar.setVisibility( vertVisible );
302
      this._vertScrollBar.setVisibility( vertVisible );
297
      this._layoutX();
303
      this._layoutX();
298
      this._layoutY();
304
      this._layoutY();
(-)js/org/eclipse/rwt/test/tests/TreeTest.js (+12 lines)
Lines 572-577 Link Here
572
      assertTrue( tree._vertScrollBar.getVisibility() );
572
      assertTrue( tree._vertScrollBar.getVisibility() );
573
      tree.destroy();
573
      tree.destroy();
574
    },
574
    },
575
    
576
    testSetScrollBarsVisibileResetValue : function() {
577
      var testUtil = org.eclipse.rwt.test.fixture.TestUtil;
578
      var tree = this._createDefaultTree();
579
      tree.setScrollBarsVisible( true, true );      
580
      testUtil.flush();
581
      tree._horzScrollBar.setValue( 10 );
582
      tree._vertScrollBar.setValue( 10 );
583
      tree.setScrollBarsVisible( false, false );
584
      assertEquals( 0, tree._horzScrollBar.getValue() );
585
      assertEquals( 0, tree._vertScrollBar.getValue() );
586
    },
575
587
576
    testVerticalScrollBarLayout : function() {
588
    testVerticalScrollBarLayout : function() {
577
      var testUtil = org.eclipse.rwt.test.fixture.TestUtil;
589
      var testUtil = org.eclipse.rwt.test.fixture.TestUtil;

Return to bug 325933