mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-20 19:31:52 +00:00
Merge pull request #2082 from asturur/drawControl-change
Update drawControl
This commit is contained in:
commit
29b7701142
1 changed files with 5 additions and 5 deletions
|
|
@ -276,12 +276,12 @@
|
|||
* @private
|
||||
*/
|
||||
_drawControl: function(control, ctx, methodName, left, top) {
|
||||
var size = this.cornerSize;
|
||||
|
||||
if (this.isControlVisible(control)) {
|
||||
isVML() || this.transparentCorners || ctx.clearRect(left, top, size, size);
|
||||
ctx[methodName](left, top, size, size);
|
||||
if (!this.isControlVisible(control)) {
|
||||
return;
|
||||
}
|
||||
var size = this.cornerSize;
|
||||
isVML() || this.transparentCorners || ctx.clearRect(left, top, size, size);
|
||||
ctx[methodName](left, top, size, size);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue