This is an automated email from the ASF dual-hosted git repository.
yongjiezhao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 2cb3635 fix(deck.gl): multiple layers map size is shrunk (#18939)
2cb3635 is described below
commit 2cb3635256ee8e91f0bac2f3091684673c04ff2b
Author: Stephen Liu <[email protected]>
AuthorDate: Fri Feb 25 18:26:49 2022 +0800
fix(deck.gl): multiple layers map size is shrunk (#18939)
---
.../plugins/legacy-preset-chart-deckgl/src/Multi/Multi.jsx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/superset-frontend/plugins/legacy-preset-chart-deckgl/src/Multi/Multi.jsx
b/superset-frontend/plugins/legacy-preset-chart-deckgl/src/Multi/Multi.jsx
index 5af92b3..e9f107e 100644
--- a/superset-frontend/plugins/legacy-preset-chart-deckgl/src/Multi/Multi.jsx
+++ b/superset-frontend/plugins/legacy-preset-chart-deckgl/src/Multi/Multi.jsx
@@ -120,7 +120,7 @@ class DeckMulti extends React.PureComponent {
};
render() {
- const { payload, formData, setControlValue } = this.props;
+ const { payload, formData, setControlValue, height, width } = this.props;
const { subSlicesLayers } = this.state;
const layers = Object.values(subSlicesLayers);
@@ -134,6 +134,8 @@ class DeckMulti extends React.PureComponent {
mapStyle={formData.mapbox_style}
setControlValue={setControlValue}
onViewportChange={this.onViewportChange}
+ height={height}
+ width={width}
/>
);
}