From efe83b8aaae8658e83ff5b5bc1f383f95ccd696e Mon Sep 17 00:00:00 2001 From: 4eb0da <4eb0da@yandex-team.com> Date: Mon, 18 Nov 2024 12:08:48 +0300 Subject: [PATCH] Tooltips size update commit_hash:4147e82d30b15f6843d837b18d88dbeb1fe01efe --- client/web/divkit/src/components/tooltip/Tooltip.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {