Merge pull request #1466 from simvan/IE8-IsVML-issue

isVML causing an issue in IE8 when filling in the corners of rectangles
This commit is contained in:
Juriy Zaytsev 2014-07-09 12:26:38 +02:00
commit 1663b5644c

View file

@ -1,7 +1,7 @@
(function(){
var degreesToRadians = fabric.util.degreesToRadians,
isVML = typeof G_vmlCanvasManager !== 'undefined';
isVML = function() { return typeof G_vmlCanvasManager !== 'undefined'; };
fabric.util.object.extend(fabric.Object.prototype, /** @lends fabric.Object.prototype */ {
@ -411,7 +411,7 @@
var size = this.cornerSize;
if (this.isControlVisible(control)) {
isVML || this.transparentCorners || ctx.clearRect(left, top, size, size);
isVML() || this.transparentCorners || ctx.clearRect(left, top, size, size);
ctx[methodName](left, top, size, size);
}
},