projects
/
raphael
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1dacaa3
)
Fixed clip-rect moving canvas to absolute position in VML mode (IE7 and IE8)
author
Pavel Chuchuva
<pavel@chuchuva.com>
Mon, 5 Sep 2011 01:04:50 +0000
(11:04 +1000)
committer
Pavel Chuchuva
<pavel@chuchuva.com>
Mon, 5 Sep 2011 01:04:50 +0000
(11:04 +1000)
raphael.js
patch
|
blob
|
history
diff --git
a/raphael.js
b/raphael.js
index
42b93ce
..
3daae30
100644
(file)
--- a/
raphael.js
+++ b/
raphael.js
@@
-4606,8
+4606,7
@@
window.Raphael.vml && function (R) {
rect[2] = +rect[2] + (+rect[0]);
rect[3] = +rect[3] + (+rect[1]);
var div = node.clipRect || R._g.doc.createElement("div"),
rect[2] = +rect[2] + (+rect[0]);
rect[3] = +rect[3] + (+rect[1]);
var div = node.clipRect || R._g.doc.createElement("div"),
- dstyle = div.style,
- group = node.parentNode;
+ dstyle = div.style;
dstyle.clip = R.format("rect({1}px {2}px {3}px {0}px)", rect);
if (!node.clipRect) {
dstyle.position = "absolute";
dstyle.clip = R.format("rect({1}px {2}px {3}px {0}px)", rect);
if (!node.clipRect) {
dstyle.position = "absolute";
@@
-4615,8
+4614,8
@@
window.Raphael.vml && function (R) {
dstyle.left = 0;
dstyle.width = o.paper.width + "px";
dstyle.height = o.paper.height + "px";
dstyle.left = 0;
dstyle.width = o.paper.width + "px";
dstyle.height = o.paper.height + "px";
-
group.parentNode.insertBefore(div, group
);
- div.appendChild(
group
);
+
node.parentNode.insertBefore(div, node
);
+ div.appendChild(
node
);
node.clipRect = div;
}
}
node.clipRect = div;
}
}