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() { ...@@ -510,18 +510,17 @@ function ViewManager() {
'position': 'absolute' 'position': 'absolute'
}); });
setElementDimensions(clone, getElementDimensions(i));
if (self.isIE7) { if (self.isIE7) {
appendChildNodes(clone, i.cloneNode(true)); appendChildNodes(clone, i.cloneNode(true));
hideElement(i); hideElement(i);
alert('is ie7');
} }
else { else {
setElementPosition(clone, getElementPosition(i, 'top-pane')); setElementPosition(clone, getElementPosition(i, 'top-pane'));
setOpacity(clone, 0.5); setOpacity(clone, 0.5);
} }
insertSiblingNodesAfter(i, clone); insertSiblingNodesAfter(i, clone);
setElementDimensions(clone, getElementDimensions(i));
// Prevents the height of the blocktype list doubling when dragging // Prevents the height of the blocktype list doubling when dragging
if (self.isIE7) { 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