Community
Participate
Working Groups
Build ID: Eclipse 3.3 Steps To Reproduce: just check the code, you'll see its wrong, or: 1. create Composite with table wrap layout 2. create label with colspan = 3 3. create label with rowspan = 2, colspan = 1 4. create text field with rowspan = 2, colspan = 2 Check the layout, height of component with rowspan is wrong. More information: method update() in TableWrapLayout.Rowspan is wrong, must be: public void update( int currentRow, int rowHeight ) { TableWrapData td = ( TableWrapData )child.getLayoutData(); --------------------------- if( row <= currentRow && currentRow <= row + td.rowspan - 1 --------------------------- ) { totalHeight += rowHeight; if( currentRow > row ) totalHeight += verticalSpacing; } }
You must have spent hours debugging this.
Fixed. Made a slight adjustment for readability: if (currentRow >= row && currentRow < row + td.rowspan) { and added comments. Thanks!