From 4f02eb98f8391860027e187bc4160a624f13a073 Mon Sep 17 00:00:00 2001 From: Xiaoji Chen Date: Sat, 21 Dec 2019 11:36:09 -0800 Subject: [PATCH] set React wrapper's z-index (#4068) --- modules/react/src/deckgl.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/react/src/deckgl.js b/modules/react/src/deckgl.js index f775cee32c4..6eaa02e3004 100644 --- a/modules/react/src/deckgl.js +++ b/modules/react/src/deckgl.js @@ -193,7 +193,14 @@ export default class DeckGL extends React.Component { // This styling is enforced for correct positioning with children const style = Object.assign( - {position: 'absolute', left: 0, top: 0, width: this.props.width, height: this.props.height}, + { + position: 'absolute', + zIndex: 0, + left: 0, + top: 0, + width: this.props.width, + height: this.props.height + }, this.props.style );