mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-08 00:10:59 +00:00
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:
commit
1663b5644c
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue