diff --git a/packages/vidstack/src/components/ui/menu/menu.ts b/packages/vidstack/src/components/ui/menu/menu.ts index 351eccc79..656fcb144 100644 --- a/packages/vidstack/src/components/ui/menu/menu.ts +++ b/packages/vidstack/src/components/ui/menu/menu.ts @@ -451,6 +451,8 @@ export class Menu extends Component { for (const child of children) { if (child instanceof HTMLElement && child.style.display === 'contents') { children.push(...child.children); + } else if (child.nodeType === 3) { + height += parseInt(window.getComputedStyle(child).fontSize, 10); } else { height += (child as HTMLElement).offsetHeight || 0; }