VizPanel: Fixes sizing issues (#59456)

This commit is contained in:
Torkel Ödegaard 2022-11-29 11:02:47 +01:00 committed by GitHub
parent 3417125553
commit fd39417db5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,7 @@ export function VizPanelRenderer({ model }: SceneComponentProps<VizPanel>) {
}
return (
<div ref={ref as RefCallback<HTMLDivElement>} style={{ width: '100%', height: '100%' }}>
<div ref={ref as RefCallback<HTMLDivElement>} style={{ position: 'absolute', width: '100%', height: '100%' }}>
<PanelChrome
title={titleInterpolated}
width={width}

View File

@ -60,6 +60,7 @@ function getItemStyles(direction: FlexLayoutDirection, sizing: SceneObjectSize =
flexDirection: direction,
minWidth: sizing.minWidth,
minHeight: sizing.minHeight,
position: 'relative',
};
if (direction === 'column') {