This is an automated email from the ASF dual-hosted git repository.
christine pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 3f96b0c Fix tooltip (#6895)
3f96b0c is described below
commit 3f96b0c5c48f6c10c6bd90b9af322425dd90594a
Author: Beto Dealmeida <[email protected]>
AuthorDate: Tue Feb 19 10:32:14 2019 -0800
Fix tooltip (#6895)
---
superset/assets/src/chart/ChartRenderer.jsx | 3 ++-
superset/assets/src/visualizations/deckgl/layers/common.jsx | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/superset/assets/src/chart/ChartRenderer.jsx
b/superset/assets/src/chart/ChartRenderer.jsx
index dcc3f5e..e4e5d44 100644
--- a/superset/assets/src/chart/ChartRenderer.jsx
+++ b/superset/assets/src/chart/ChartRenderer.jsx
@@ -69,7 +69,7 @@ class ChartRenderer extends React.Component {
this.handleRenderFailure = this.handleRenderFailure.bind(this);
}
- shouldComponentUpdate(nextProps) {
+ shouldComponentUpdate(nextProps, nextState) {
const resultsReady =
nextProps.queryResponse &&
['success', 'rendered'].indexOf(nextProps.chartStatus) > -1 &&
@@ -84,6 +84,7 @@ class ChartRenderer extends React.Component {
nextProps.annotationData !== this.props.annotationData ||
nextProps.height !== this.props.height ||
nextProps.width !== this.props.width ||
+ nextState.tooltip !== this.state.tooltip ||
nextProps.triggerRender) {
return true;
}
diff --git a/superset/assets/src/visualizations/deckgl/layers/common.jsx
b/superset/assets/src/visualizations/deckgl/layers/common.jsx
index b948bb8..b9b2716 100644
--- a/superset/assets/src/visualizations/deckgl/layers/common.jsx
+++ b/superset/assets/src/visualizations/deckgl/layers/common.jsx
@@ -71,7 +71,7 @@ export function commonLayerProps(formData, setTooltip,
onSelect) {
setTooltip({
content: tooltipContentGenerator(o),
x: o.x,
- y: o.y,
+ y: o.y + 30,
});
} else {
setTooltip(null);