Merge pull request #2082 from asturur/drawControl-change

Update drawControl
This commit is contained in:
Juriy Zaytsev 2015-04-04 15:17:05 +02:00
commit 29b7701142

View file

@ -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);
},
/**