Commit e63bb8875d9622c52cbd81f3946f37f53e8fc25a

Authored by Sergey Tarnavskiy
1 parent 3e25997b

fix bug in horizontal-bar widget

... ... @@ -455,7 +455,7 @@ function barDimensions(context, options, x, y, w, h) {
455 455 if (options.hideMinMax && options.label === '') {
456 456 bd.labelY = bd.barBottom;
457 457 bd.barLeft = bd.origBaseX + options.fontMinMaxSize/3 * bd.fontSizeFactor;
458   - bd.barRight = bd.bd.origBaseX + w + /*bd.width*/ - options.fontMinMaxSize/3 * bd.fontSizeFactor;
  458 + bd.barRight = bd.origBaseX + w + /*bd.width*/ - options.fontMinMaxSize/3 * bd.fontSizeFactor;
459 459 } else {
460 460 context.font = canvasGauges.drawings.font(options, 'MinMax', bd.fontSizeFactor);
461 461 var minTextWidth = context.measureText(options.minValue+'').width;
... ...