Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[Bug] Add style prop to kepler-gl container (#1398)

Shan He8d68001d5125
diff --git a/src/components/kepler-gl.js b/src/components/kepler-gl.js
index abcf5878e..a2fd1cc3a 100644
--- a/src/components/kepler-gl.js
+++ b/src/components/kepler-gl.js
@@ -398,10 +398,13 @@ function KeplerGlFactory(
<IntlProvider locale={uiState.locale} messages={localeMessages[uiState.locale]}>
<ThemeProvider theme={theme}>
<GlobalStyle
- width={width}
- height={height}
className="kepler-gl"
id={`kepler-gl__${id}`}
+ style={{
+ position: 'relative',
+ width: `${width}px`,
+ height: `${height}px`
+ }}
ref={this.root}
>
<NotificationPanel {...notificationPanelFields} />