mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-13 07:11:12 +01:00
removed unnecessary object property set
This commit is contained in:
parent
3960ecfcdb
commit
c170062eae
1 changed files with 1 additions and 2 deletions
|
@ -244,8 +244,7 @@ class Morris.Grid extends Morris.EventEmitter
|
||||||
if @options.xLabelsDiagonal
|
if @options.xLabelsDiagonal
|
||||||
bottomOffsets = for i in [0...@data.length]
|
bottomOffsets = for i in [0...@data.length]
|
||||||
@measureText(@data[i].text, @options.gridTextSize, -90).height
|
@measureText(@data[i].text, @options.gridTextSize, -90).height
|
||||||
@maxXLabelHeight = Math.max(bottomOffsets...)
|
@bottom -= Math.max(bottomOffsets...)
|
||||||
@bottom -= @maxXLabelHeight
|
|
||||||
else
|
else
|
||||||
@bottom -= 1.5 * @options.gridTextSize
|
@bottom -= 1.5 * @options.gridTextSize
|
||||||
@width = Math.max(1, @right - @left)
|
@width = Math.max(1, @right - @left)
|
||||||
|
|
Loading…
Reference in a new issue