Commit 3da6349d authored by Nigel McNie's avatar Nigel McNie
Browse files

Make sure the transparent blocktype clones are resized _after_ being inserted...

Make sure the transparent blocktype clones are resized _after_ being inserted into the DOM, this makes sure that it gets resized to the correct size
parent ecc9c55d
......@@ -510,18 +510,17 @@ function ViewManager() {
'position': 'absolute'
});
setElementDimensions(clone, getElementDimensions(i));
if (self.isIE7) {
appendChildNodes(clone, i.cloneNode(true));
hideElement(i);
alert('is ie7');
}
else {
setElementPosition(clone, getElementPosition(i, 'top-pane'));
setOpacity(clone, 0.5);
}
insertSiblingNodesAfter(i, clone);
setElementDimensions(clone, getElementDimensions(i));
// Prevents the height of the blocktype list doubling when dragging
if (self.isIE7) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment