? visualweb/designer/cssengine/lib Index: visualweb/designer/src/org/netbeans/modules/visualweb/css2/CssBox.java =================================================================== RCS file: /cvs/visualweb/designer/src/org/netbeans/modules/visualweb/css2/CssBox.java,v retrieving revision 1.20 diff -u -u -r1.20 CssBox.java --- visualweb/designer/src/org/netbeans/modules/visualweb/css2/CssBox.java 6 Jun 2007 23:08:27 -0000 1.20 +++ visualweb/designer/src/org/netbeans/modules/visualweb/css2/CssBox.java 21 Jun 2007 21:25:34 -0000 @@ -1142,7 +1142,28 @@ if (positionParent != this) { // Not positioned by us - need to compute the // positioning parent's absolute position - box.paint(g, positionParent.getAbsoluteX(), positionParent.getAbsoluteY()); + + int positionX; + int positionY; + // XXX #99918 Hacking for the cases when the left and top properties are auto. + if (box.boxType == BoxType.FIXED) { + if (CssProvider.getValueService().isAutoValue(CssProvider.getEngineService().getComputedValueForElement(box.element, XhtmlCss.LEFT_INDEX))) { + positionX = px; + } else { + positionX = positionParent.getAbsoluteX(); + } + + if (CssProvider.getValueService().isAutoValue(CssProvider.getEngineService().getComputedValueForElement(box.element, XhtmlCss.TOP_INDEX))) { + positionY = py; + } else { + positionY = positionParent.getAbsoluteY(); + } + } else { + positionX = positionParent.getAbsoluteX(); + positionY = positionParent.getAbsoluteY(); + } + + box.paint(g, positionX, positionY); } else { box.paint(g, px, py); }