Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
Timelion rescaling vertical bounds incorrectly on window resize (elas…
Browse files Browse the repository at this point in the history
…tic#123534)

* Timelion rescaling vertical bounds incorrectly on window resize

* Update test axis labels data as chart has another scale due to updated padding

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
DianaDerevyankina and kibanamachine authored Jan 24, 2022
1 parent 650919c commit 6ee1e37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const MAIN_GROUP_ID = 1;
export const withStaticPadding = (domain: AxisSpec['domain']): AxisSpec['domain'] =>
({
...domain,
padding: 50,
padding: 20,
paddingUnit: 'pixel',
} as unknown as AxisSpec['domain']);

Expand Down
2 changes: 1 addition & 1 deletion test/functional/apps/visualize/_timelion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
expect(firstAxesLabels).to.eql(['12.2GB', '12.21GB']);
expect(secondAxesLabels).to.eql(['5.59KB', '5.6KB']);
expect(thirdAxesLabels.toString()).to.be(
'BYTES_5721,BYTES_5722,BYTES_5723,BYTES_5724,BYTES_5725,BYTES_5726,BYTES_5727,BYTES_5728,BYTES_5729,BYTES_5730,BYTES_5731,BYTES_5732,BYTES_5733'
'BYTES_5722,BYTES_5723,BYTES_5724,BYTES_5725,BYTES_5726,BYTES_5727,BYTES_5728,BYTES_5729,BYTES_5730,BYTES_5731,BYTES_5732,BYTES_5733'
);
});

Expand Down

0 comments on commit 6ee1e37

Please sign in to comment.