mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
VizPanel: Fixes sizing issues (#59456)
This commit is contained in:
parent
3417125553
commit
fd39417db5
@ -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}
|
||||
|
@ -60,6 +60,7 @@ function getItemStyles(direction: FlexLayoutDirection, sizing: SceneObjectSize =
|
||||
flexDirection: direction,
|
||||
minWidth: sizing.minWidth,
|
||||
minHeight: sizing.minHeight,
|
||||
position: 'relative',
|
||||
};
|
||||
|
||||
if (direction === 'column') {
|
||||
|
Loading…
Reference in New Issue
Block a user