mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
Tooltips size update
commit_hash:4147e82d30b15f6843d837b18d88dbeb1fe01efe
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user