You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/ui/src/js/src/layout/ReactPanel.tsx
+41-38Lines changed: 41 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ import { nanoid } from 'nanoid';
4
4
import{
5
5
LayoutUtils,
6
6
PanelEvent,
7
+
PanelIdContext,
7
8
useLayoutManager,
8
9
useListener,
9
10
}from'@deephaven/dashboard';
@@ -204,45 +205,47 @@ function ReactPanel({
204
205
returnportal
205
206
? ReactDOM.createPortal(
206
207
<ReactPanelContext.Providervalue={panelId}>
207
-
<View
208
-
height="100%"
209
-
width="100%"
210
-
backgroundColor={backgroundColor}
211
-
padding={padding}
212
-
paddingTop={paddingTop}
213
-
paddingBottom={paddingBottom}
214
-
paddingStart={paddingStart}
215
-
paddingEnd={paddingEnd}
216
-
paddingX={paddingX}
217
-
paddingY={paddingY}
218
-
overflow={overflow}
219
-
UNSAFE_style={UNSAFE_style}
220
-
UNSAFE_className={
221
-
UNSAFE_className==null
222
-
? 'dh-react-panel'
223
-
: `${UNSAFE_className} dh-react-panel`
224
-
}
225
-
>
226
-
<Flex
227
-
UNSAFE_className="dh-inner-react-panel"
228
-
wrap={wrap}
229
-
direction={direction}
230
-
justifyContent={justifyContent}
231
-
alignContent={alignContent}
232
-
alignItems={alignItems}
233
-
gap={gap}
234
-
rowGap={rowGap}
235
-
columnGap={columnGap}
208
+
<PanelIdContext.Providervalue={panelId}>
209
+
<View
210
+
height="100%"
211
+
width="100%"
212
+
backgroundColor={backgroundColor}
213
+
padding={padding}
214
+
paddingTop={paddingTop}
215
+
paddingBottom={paddingBottom}
216
+
paddingStart={paddingStart}
217
+
paddingEnd={paddingEnd}
218
+
paddingX={paddingX}
219
+
paddingY={paddingY}
220
+
overflow={overflow}
221
+
UNSAFE_style={UNSAFE_style}
222
+
UNSAFE_className={
223
+
UNSAFE_className==null
224
+
? 'dh-react-panel'
225
+
: `${UNSAFE_className} dh-react-panel`
226
+
}
236
227
>
237
-
<ReactPanelErrorBoundary>
238
-
{/**
239
-
* Don't render the children if there's an error with the widget. If there's an error with the widget, we can assume the children won't render properly,
240
-
* but we still want the panels to appear so things don't disappear/jump around.
241
-
*/}
242
-
{renderedChildren??null}
243
-
</ReactPanelErrorBoundary>
244
-
</Flex>
245
-
</View>
228
+
<Flex
229
+
UNSAFE_className="dh-inner-react-panel"
230
+
wrap={wrap}
231
+
direction={direction}
232
+
justifyContent={justifyContent}
233
+
alignContent={alignContent}
234
+
alignItems={alignItems}
235
+
gap={gap}
236
+
rowGap={rowGap}
237
+
columnGap={columnGap}
238
+
>
239
+
<ReactPanelErrorBoundary>
240
+
{/**
241
+
* Don't render the children if there's an error with the widget. If there's an error with the widget, we can assume the children won't render properly,
242
+
* but we still want the panels to appear so things don't disappear/jump around.
0 commit comments