mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Sandbox: Set sandbox wrapper to height 100% for panel plugins (#75004)
Sandbox: Fix panel plugin not showing scrollbars
This commit is contained in:
parent
ec69e903ea
commit
62d0becd25
@ -92,7 +92,10 @@ const withSandboxWrapper = <P extends object>(
|
||||
): React.MemoExoticComponent<FC<P>> => {
|
||||
const WithWrapper = React.memo((props: P) => {
|
||||
return (
|
||||
<div data-plugin-sandbox={pluginMeta.id} style={{ height: pluginMeta.type === PluginType.app ? '100%' : 'auto' }}>
|
||||
<div
|
||||
data-plugin-sandbox={pluginMeta.id}
|
||||
style={{ height: pluginMeta.type === PluginType.app || pluginMeta.type === PluginType.panel ? '100%' : 'auto' }}
|
||||
>
|
||||
<WrappedComponent {...props} />
|
||||
</div>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user