diff --git a/client/web/divkit/src/components/tooltip/Tooltip.svelte b/client/web/divkit/src/components/tooltip/Tooltip.svelte index ae06b9bb0..faf7c1bf0 100644 --- a/client/web/divkit/src/components/tooltip/Tooltip.svelte +++ b/client/web/divkit/src/components/tooltip/Tooltip.svelte @@ -96,14 +96,14 @@ const jsonHeight = parentComponentContext.getJsonWithVars(data.div?.width); if (!jsonWidth || jsonWidth.type === 'match_parent') { - calcedWidth = width = ownerBbox.width; + calcedWidth = width = window.innerWidth; } else if (jsonWidth.type === 'fixed' && jsonWidth.value) { calcedWidth = width = jsonWidth.value; } else { calcedWidth = tooltipBbox.width; } if (jsonHeight?.type === 'match_parent') { - calcedHeight = height = ownerBbox.height; + calcedHeight = height = window.innerHeight; } else if (jsonHeight?.type === 'fixed' && jsonHeight.value) { calcedHeight = height = jsonHeight.value; } else {