GridBagLayoutBuilder leaves extra space if last component in a row stretches more than one column.
--------------------------------------------------------------------------------------------------
Key: RCP-256
URL: http://opensource.atlassian.com/projects/spring/browse/RCP-256
Project: Spring Framework Rich Client Project
Type: Bug
Reporter: Arne Limburg
Assigned to: Oliver Hutchison
GridBagLayoutBuilder leaves extra space if last component in a row stretches more than one column. This means, that the right borders of the rightmost components are not the same in every row. This bug could be fixed, by changing row 671 and 675 of GridBagLayoutBuilder:
current CVS version:
671 if (currentRowIndex == lastRowIndex) {
672 formatLastRow(gbc);
673 }
674
675 if (currentColIndex == lastColIndex) {
676 formatLastColumn(gbc, currentColIndex);
677 }
bugfix:
671 if (gbc.gridy + gbc.gridheight - 1 == lastRowIndex) {
672 formatLastRow(gbc);
673 }
674
675 if (gbc.gridx + gbc.gridwidth - 1 == lastColIndex) {
676 formatLastColumn(gbc, currentColIndex);
677 }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/spring/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|