}
private void ie6Layout() {
// special handling for IE6 is needed, it does not support
// setting both left/right or top/bottom
Style style = getElement().getStyle();
if (bottom != null && top != null) {
// define height for wrapper to simulate bottom property
int bottompixels = measureForIE6(bottom, true);
VConsole.log("ALB" + bottompixels);
int height = canvas.getOffsetHeight() - bottompixels
- getElement().getOffsetTop();
VConsole.log("ALB" + height);
if (height < 0) {
height = 0;
}
style.setPropertyPx("height", height);
} else {
// reset possibly existing value
style.setProperty("height", "");
}
if (left != null && right != null) {
// define width for wrapper to simulate right property
int rightPixels = measureForIE6(right, false);
VConsole.log("ALR" + rightPixels);
int width = canvas.getOffsetWidth() - rightPixels
- getElement().getOffsetLeft();
VConsole.log("ALR" + width);
if (width < 0) {
width = 0;
}
style.setPropertyPx("width", width);
} else {
// reset possibly existing value
style.setProperty("width", "");
}
}