mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 01:15:43 +03:00
Prevent -1 dimension errors in LineChart
This commit is contained in:
@@ -209,11 +209,11 @@ export default class LineChart extends Component {
|
||||
}
|
||||
|
||||
get xAxisOffset() {
|
||||
return this.height - this.xAxisHeight;
|
||||
return Math.max(0, this.height - this.xAxisHeight);
|
||||
}
|
||||
|
||||
get yAxisOffset() {
|
||||
return this.width - this.yAxisWidth;
|
||||
return Math.max(0, this.width - this.yAxisWidth);
|
||||
}
|
||||
|
||||
@action
|
||||
|
||||
Reference in New Issue
Block a user