]> source.dussan.org Git - vaadin-framework.git/commitdiff
renderspace dummy implementation for icustomlayout
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 7 Oct 2008 12:21:09 +0000 (12:21 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 7 Oct 2008 12:21:09 +0000 (12:21 +0000)
svn changeset:5605/svn branch:trunk

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

index 5a87897067a1eabd27ca074f187099d7a62f23c7..09987f2b73ce780b0d9dc16bd37f27e963f41f18 100644 (file)
@@ -474,13 +474,13 @@ public class ICustomLayout extends ComplexPanel implements Paintable,
     }-*/;
 
     public boolean requestLayout(Set<Paintable> child) {
-        // TODO Auto-generated method stub
         return false;
     }
 
     public RenderSpace getAllocatedSpace(Widget child) {
-        // TODO Auto-generated method stub
-        return null;
+        com.google.gwt.dom.client.Element pe = child.getElement()
+                .getParentElement();
+        return new RenderSpace(pe.getOffsetWidth(), pe.getOffsetHeight(), true);
     }
 
 }