.v-absolutelayout-wrapper {
position: absolute;
overflow: hidden;
-}
\ No newline at end of file
+}
+.v-absolutelayout-margin, .v-absolutelayout-canvas {
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+}
+.v-absolutelayout.v-has-height > div, .v-absolutelayout.v-has-height > div > div {
+ height: 100%;
+}
+.v-absolutelayout.v-has-width > div, .v-absolutelayout.v-has-width > div > div {
+ width: 100%;
+}
canvas.getStyle().setProperty("overflow", "hidden");
marginElement.appendChild(canvas);
getElement().appendChild(marginElement);
+
+ canvas.setClassName(CLASSNAME + "-canvas");
+ canvas.setClassName(CLASSNAME + "-margin");
}
AbsoluteWrapper getWrapper(ApplicationConnection client, UIDL componentUIDL) {
super.add(child, canvas);
}
- @Override
- public void setWidth(String width) {
- super.setWidth(width);
- // TODO do this so that canvas gets the sized properly (the area
- // inside marginals)
- canvas.getStyle().setProperty("width", width);
- }
-
- @Override
- public void setHeight(String height) {
- super.setHeight(height);
- // TODO do this so that canvas gets the sized properly (the area
- // inside marginals)
- canvas.getStyle().setProperty("height", height);
- }
-
public class AbsoluteWrapper extends SimplePanel {
private String css;
String left;