mirror of
https://github.com/status-im/fathom.git
synced 2025-03-01 11:30:28 +00:00
use fixed graph height. fixes #41
This commit is contained in:
parent
2c1edc6aeb
commit
7a8a351f02
2
assets/src/js/components/Chart.js
vendored
2
assets/src/js/components/Chart.js
vendored
@ -98,7 +98,7 @@ class Chart extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let padding = { top: 12, right: 12, bottom: 24, left: 40 };
|
let padding = { top: 12, right: 12, bottom: 24, left: 40 };
|
||||||
let height = Math.max( this.base.clientHeight, 240 );
|
let height = 240;
|
||||||
let width = this.base.clientWidth;
|
let width = this.base.clientWidth;
|
||||||
let innerWidth = width - padding.left - padding.right;
|
let innerWidth = width - padding.left - padding.right;
|
||||||
let innerHeight = height - padding.top - padding.bottom;
|
let innerHeight = height - padding.top - padding.bottom;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user