]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixes 1204: added rowspan in IGridLayout.
authorMarko Grönroos <magi@iki.fi>
Thu, 29 Nov 2007 19:15:28 +0000 (19:15 +0000)
committerMarko Grönroos <magi@iki.fi>
Thu, 29 Nov 2007 19:15:28 +0000 (19:15 +0000)
svn changeset:3050/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/IGridLayout.java

index 2d3328a4a52f5e7ece9102ae4d12877f04262281..c4e6192674862396625ebeb2b9e1a31770282027 100644 (file)
@@ -37,6 +37,7 @@ public class IGridLayout extends FlexTable implements Paintable, Container {
                 for (Iterator j = r.getChildIterator(); j.hasNext();) {
                     UIDL c = (UIDL) j.next();
                     if ("gc".equals(c.getTag())) {
+                        // Set cell width
                         int w;
                         if (c.hasAttribute("w")) {
                             w = c.getIntAttribute("w");
@@ -46,6 +47,16 @@ public class IGridLayout extends FlexTable implements Paintable, Container {
                         ((FlexCellFormatter) getCellFormatter()).setColSpan(
                                 row, column, w);
 
+                        // Set cell height
+                        int h;
+                        if (c.hasAttribute("h")) {
+                            h = c.getIntAttribute("h");
+                        } else {
+                            h = 1;
+                        }
+                        ((FlexCellFormatter) getCellFormatter()).setRowSpan(
+                                row, column, h);
+
                         UIDL u = c.getChildUIDL(0);
                         if (u != null) {
                             Widget child = client.getWidget(u);