Revision: 7247 Author: jlaba...@google.com Date: Thu Dec 3 14:37:30 2009 Log: tr...@7244 was merged into this branch Resize MailList in Mail sample. svn merge --ignore-ancestry -c7244 https://google-web-toolkit.googlecode.com/svn/trunk/ .
Patch by: jlabanca http://code.google.com/p/google-web-toolkit/source/detail?r=7247 Modified: /releases/2.0/branch-info.txt /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/MailList.java ======================================= --- /releases/2.0/branch-info.txt Wed Dec 2 11:33:05 2009 +++ /releases/2.0/branch-info.txt Thu Dec 3 14:37:30 2009 @@ -1167,4 +1167,7 @@ amount of memory. svn merge --ignore-ancestry -c7236 https://google-web-toolkit.googlecode.com/svn/trunk/ . - +tr...@7244 was merged into this branch + Resize MailList in Mail sample. + svn merge --ignore-ancestry -c7244 https://google-web-toolkit.googlecode.com/svn/trunk/ . + ======================================= --- /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/MailList.java Tue Nov 24 14:21:51 2009 +++ /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/MailList.java Thu Dec 3 14:37:30 2009 @@ -131,15 +131,6 @@ // Initialize the table. table.getColumnFormatter().setWidth(0, "128px"); table.getColumnFormatter().setWidth(1, "192px"); - - for (int i = 0; i < VISIBLE_EMAIL_COUNT; ++i) { - table.setText(i, 0, ""); - table.setText(i, 1, ""); - table.setText(i, 2, ""); - table.getCellFormatter().setWordWrap(i, 0, false); - table.getCellFormatter().setWordWrap(i, 1, false); - table.getCellFormatter().setWordWrap(i, 2, false); - } } /** @@ -208,9 +199,7 @@ // Clear any remaining slots. for (; i < VISIBLE_EMAIL_COUNT; ++i) { - table.setHTML(i, 0, " "); - table.setHTML(i, 1, " "); - table.setHTML(i, 2, " "); + table.removeRow(table.getRowCount() - 1); } } } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors