var content = document.getElementById("content");
function repaintTest() {
- setTimeout(createObject, 0);
+ // FIXME: we need a better way of waiting for layout/repainting to happen
+ setTimeout(createObject, 1);
}
function createObject()
path.setAttribute("d", "M 130 135 L 180 135 L 180 185");
content.appendChild(path);
- setTimeout(createMarker, 0);
+ // FIXME: we need a better way of waiting for layout/repainting to happen
+ setTimeout(createMarker, 1);
}
function createMarker()