|
@@ -102,10 +102,12 @@ module BABYLON.GUI {
|
|
|
let actualWidth = this._currentMeasure.width - this._thickness;
|
|
|
let actualHeight = this._currentMeasure.height - this._thickness;
|
|
|
|
|
|
- context.shadowColor = this.shadowColor;
|
|
|
- context.shadowBlur = this.shadowBlur;
|
|
|
- context.shadowOffsetX = this.shadowOffsetX;
|
|
|
- context.shadowOffsetY = this.shadowOffsetY;
|
|
|
+ if(this.shadowBlur || this.shadowOffsetX || this.shadowOffsetY){
|
|
|
+ context.shadowColor = this.shadowColor;
|
|
|
+ context.shadowBlur = this.shadowBlur;
|
|
|
+ context.shadowOffsetX = this.shadowOffsetX;
|
|
|
+ context.shadowOffsetY = this.shadowOffsetY;
|
|
|
+ }
|
|
|
|
|
|
// Outer
|
|
|
Control.drawEllipse(this._currentMeasure.left + this._currentMeasure.width / 2, this._currentMeasure.top + this._currentMeasure.height / 2,
|
|
@@ -114,9 +116,11 @@ module BABYLON.GUI {
|
|
|
context.fillStyle = this._background;
|
|
|
context.fill();
|
|
|
|
|
|
- context.shadowBlur = 0;
|
|
|
- context.shadowOffsetX = 0;
|
|
|
- context.shadowOffsetY = 0;
|
|
|
+ if(this.shadowBlur || this.shadowOffsetX || this.shadowOffsetY){
|
|
|
+ context.shadowBlur = 0;
|
|
|
+ context.shadowOffsetX = 0;
|
|
|
+ context.shadowOffsetY = 0;
|
|
|
+ }
|
|
|
|
|
|
context.strokeStyle = this.color;
|
|
|
context.lineWidth = this._thickness;
|