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 422645
Collapse All | Expand All

(-)js/rwt/widgets/Grid.js (+1 lines)
Lines 1354-1359 Link Here
1354
      this._horzScrollBar.setWidth( width );
1354
      this._horzScrollBar.setWidth( width );
1355
      this._rowContainer.setWidth( width );
1355
      this._rowContainer.setWidth( width );
1356
      this._updateScrollWidth();
1356
      this._updateScrollWidth();
1357
      this._scheduleUpdate();
1357
    },
1358
    },
1358
1359
1359
    _layoutY : function() {
1360
    _layoutY : function() {
(-)js/org/eclipse/rwt/test/tests/GridTest.js (+20 lines)
Lines 784-789 Link Here
784
      tree.destroy();
784
      tree.destroy();
785
    },
785
    },
786
786
787
    testRenderItemsOnResizeWidth : function() {
788
      var tree = new rwt.widgets.Grid( { "appearance": "tree" } );
789
      this._fakeAppearance();
790
      tree.addToDocument();
791
      tree.setWidth( 300 );
792
      tree.setHeight( 300 );
793
      TestUtil.flush();
794
      var log = [];
795
      var row = tree.getRowContainer().getChildren()[ 0 ];
796
      row.addEventListener( "itemRendered", function( event ) {
797
        log.push( event );
798
      } );
799
800
      tree.setWidth( 700 );
801
      TestUtil.flush();
802
803
      assertEquals( 1, log.length );
804
      tree.destroy();
805
    },
806
787
    testSimpleInternalLayoutWithBorder : function() {
807
    testSimpleInternalLayoutWithBorder : function() {
788
      var tree = new rwt.widgets.Grid( { "appearance": "tree" } );
808
      var tree = new rwt.widgets.Grid( { "appearance": "tree" } );
789
      this._fakeAppearance();
809
      this._fakeAppearance();

Return to bug 422645