1. Bruno Harbulot
  2. jqplot

Commits

Bruno Harbulot  committed ef564a9

Fix to centre the legend box when using 'outsideGrid' placement and 's' location.

  • Participants
  • Parent commits d2e1399
  • Branches issue_623

Comments (0)

Files changed (1)

File src/jqplot.core.js

View file
                 
                 if (this.legend.placement === 'outsideGrid') {
                     legendPadding = {top:this.title.getHeight(), left: 0, right: 0, bottom: 0};
-                    if (this.legend.location === 's') {
-                        legendPadding.left = this._gridPadding.left;
-                        legendPadding.right = this._gridPadding.right;
-                    }
                 }
                 
                 ax.xaxis.pack({position:'absolute', bottom:this._gridPadding.bottom - ax.xaxis.getHeight(), left:0, width:this._width}, {min:this._gridPadding.left, max:this._width - this._gridPadding.right});