mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Complicated resize fix
This commit is contained in:
parent
fddf0aa7d1
commit
bc96225a67
1 changed files with 3 additions and 1 deletions
|
@ -27,13 +27,15 @@ export const getResizePreviewRect = ({
|
|||
runtimeSettings: RuntimeGridSettings;
|
||||
}) => {
|
||||
const panelRect = interactionEvent.panelDiv.getBoundingClientRect();
|
||||
|
||||
return {
|
||||
left: panelRect.left,
|
||||
top: panelRect.top,
|
||||
bottom: pointerPixel.clientY - interactionEvent.pointerOffsets.bottom,
|
||||
right: Math.min(
|
||||
pointerPixel.clientX - interactionEvent.pointerOffsets.right,
|
||||
getGridWidth(runtimeSettings)
|
||||
interactionEvent.panelDiv.parentElement?.getBoundingClientRect().right ??
|
||||
getGridWidth(runtimeSettings)
|
||||
),
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue