Skip to content

Commit

Permalink
Consider scaleLabel.lineHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Aug 21, 2017
1 parent f499e8b commit 3eaf8fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/specs/scale.linear.tests.js
Expand Up @@ -770,15 +770,15 @@ describe('Linear Scale', function() {
expect(xScale.paddingBottom).toBeCloseToPixel(0);
expect(xScale.paddingLeft).toBeCloseToPixel(0);
expect(xScale.paddingRight).toBeCloseToPixel(0);
expect(xScale.width).toBeCloseToPixel(436 + 8); // plus scaleLabel.padding
expect(xScale.height).toBeCloseToPixel(41 + 8); // plus scaleLabel.padding
expect(xScale.width).toBeCloseToPixel(436 + 3 + 8); // plus additional lineHeight + scaleLabel.padding
expect(xScale.height).toBeCloseToPixel(35 + 3 + 8); // plus additional lineHeight + scaleLabel.padding

expect(yScale.paddingTop).toBeCloseToPixel(0);
expect(yScale.paddingBottom).toBeCloseToPixel(0);
expect(yScale.paddingLeft).toBeCloseToPixel(0);
expect(yScale.paddingRight).toBeCloseToPixel(0);
expect(yScale.width).toBeCloseToPixel(49 + 8); // plus scaleLabel.padding
expect(yScale.height).toBeCloseToPixel(432);
expect(yScale.width).toBeCloseToPixel(41 + 3 + 8); // plus additional lineHeight + scaleLabel.padding
expect(yScale.height).toBeCloseToPixel(424 + 3 + 8);// plus additional lineHeight + scaleLabel.padding
});

it('should fit correctly when display is turned off', function() {
Expand Down

0 comments on commit 3eaf8fd

Please sign in to comment.