diff options
| author | bob <bcz@cs.brown.edu> | 2019-04-19 16:35:45 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-04-19 16:35:45 -0400 |
| commit | 51bf82d67ad12f8ec2aadf0b3ac36273c811473b (patch) | |
| tree | b578c009635e40be2b370b5349a76ec97234f2b5 /src/client/northstar | |
| parent | 5ce44593a1edb4de4254f8fc7e323ae1d9f9e896 (diff) | |
| parent | af6feb64510490da8d815f41ceb639d693b9eae3 (diff) | |
Merge branch 'master' into leftbuttondominant
Diffstat (limited to 'src/client/northstar')
| -rw-r--r-- | src/client/northstar/dash-nodes/HistogramBox.scss | 6 | ||||
| -rw-r--r-- | src/client/northstar/dash-nodes/HistogramBox.tsx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/client/northstar/dash-nodes/HistogramBox.scss b/src/client/northstar/dash-nodes/HistogramBox.scss index e899cf15e..06d781263 100644 --- a/src/client/northstar/dash-nodes/HistogramBox.scss +++ b/src/client/northstar/dash-nodes/HistogramBox.scss @@ -1,12 +1,12 @@ .histogrambox-container { padding: 0vw; position: absolute; - top: 0; - left:0; + top: -50%; + left:-50%; text-align: center; width: 100%; height: 100%; - background: black; + background: black; } .histogrambox-xaxislabel { position:absolute; diff --git a/src/client/northstar/dash-nodes/HistogramBox.tsx b/src/client/northstar/dash-nodes/HistogramBox.tsx index 0e84ace50..e2ecc8c83 100644 --- a/src/client/northstar/dash-nodes/HistogramBox.tsx +++ b/src/client/northstar/dash-nodes/HistogramBox.tsx @@ -146,7 +146,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(-50%, -50%)` }}> + <div className="histogrambox-container" ref={measureRef}> <div className="histogrambox-yaxislabel" onPointerDown={this.yLabelPointerDown} ref={this._dropYRef} > <span className="histogrambox-yaxislabel-text"> {labelY} |
