diff options
| author | bob <bcz@cs.brown.edu> | 2019-04-05 15:19:23 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-04-05 15:19:23 -0400 |
| commit | 1dd49a9659df6d4f449193eb7dbffeb56e5063b8 (patch) | |
| tree | 86cd94cd1ae30e2f2d329e8e0577aa6747269116 /src/client/northstar/dash-nodes | |
| parent | f873d620e9a3804d5a6783d7ea335b27d59b4612 (diff) | |
cleaned up histogram render transform. fixed brushing
Diffstat (limited to 'src/client/northstar/dash-nodes')
| -rw-r--r-- | src/client/northstar/dash-nodes/HistogramBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/northstar/dash-nodes/HistogramBox.tsx b/src/client/northstar/dash-nodes/HistogramBox.tsx index 49ebe5ebc..dd6e09900 100644 --- a/src/client/northstar/dash-nodes/HistogramBox.tsx +++ b/src/client/northstar/dash-nodes/HistogramBox.tsx @@ -148,7 +148,7 @@ export class HistogramBox extends React.Component<FieldViewProps> { return ( <Measure onResize={(r: any) => runInAction(() => { this.PanelWidth = r.entry.width; this.PanelHeight = r.entry.height })}> {({ measureRef }) => - <div className="histogrambox-container" ref={measureRef} style={{ transform: `translate(${-w / 2}px, ${-h / 2}px)` }}> + <div className="histogrambox-container" ref={measureRef} style={{ transform: `translate(-50%, -50%)` }}> <div className="histogrambox-yaxislabel" onPointerDown={this.yLabelPointerDown} ref={this._dropYRef} > <span className="histogrambox-yaxislabel-text"> {labelY} |
