diff options
author | John Ahlroos <john@vaadin.com> | 2014-07-31 15:34:58 +0300 |
---|---|---|
committer | John Ahlroos <john@vaadin.com> | 2014-07-31 16:21:16 +0300 |
commit | b51f6ebc0d0e60d20f40f4492e865d990b80ceb2 (patch) | |
tree | f7d74ee4cbaf5f2d497bf2aee4b00a9ac04f733b /client | |
parent | 6aeee90ccab579052452862e322b1c3ce0e0e51e (diff) | |
download | vaadin-framework-b51f6ebc0d0e60d20f40f4492e865d990b80ceb2.tar.gz vaadin-framework-b51f6ebc0d0e60d20f40f4492e865d990b80ceb2.zip |
Fixes setting width before adding column to grid #13334
Change-Id: Iddc16a9b84b2d52b39d44280b3d73a656c971fd0
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/grid/Grid.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/client/src/com/vaadin/client/ui/grid/Grid.java b/client/src/com/vaadin/client/ui/grid/Grid.java index d946be3d9e..dbfaf15813 100644 --- a/client/src/com/vaadin/client/ui/grid/Grid.java +++ b/client/src/com/vaadin/client/ui/grid/Grid.java @@ -1193,14 +1193,7 @@ public class Grid<T> extends Composite implements * @return pixel width of the column */ public int getWidth() { - if (grid == null) { - return width; - } else { - int index = findIndexOfColumn(); - ColumnConfiguration conf = grid.escalator - .getColumnConfiguration(); - return conf.getColumnWidth(index); - } + return width; } /** |