Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't add padding when there's no last tick.
Flot 0.8 added logic to account for the size of axis tick labels and add padding around the edges of the plot, to prevent long labels from sticking out. But it padded both sides equally, which is incorrect if the right/top side has no last axis label. Fixed by allocating padding per-side, and checking whether the last label would be shown before padding the top or right. Fixes flot#1048.
- Loading branch information
Showing
1 changed file
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters