Skip to content

Commit 7be9237

Browse files
committed
Add a note for a minor change after v1.0.11
1 parent be681f9 commit 7be9237

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

InterSpec_resources/D3TimeChart.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,11 @@ D3TimeChart.prototype.handleResize = function () {
509509
this.state.height = this.chart.clientHeight;
510510
this.state.width = this.chart.clientWidth;
511511

512+
// TODO: switch to getting dimensions via the following; seems to work better
513+
//const parentRect = this.chart.getBoundingClientRect();
514+
//this.state.height = parentRect.width;
515+
//this.state.width = parentRect.height;
516+
512517
this.reinitializeChart();
513518
} catch (err) {
514519
if (err instanceof ValidationError) {

0 commit comments

Comments
 (0)