Skip to content

Commit 32bf076

Browse files
committed
Fix minor regression introduced by #554
1 parent 3c31281 commit 32bf076

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/popover/popover.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,11 @@ export class ChPopover {
867867
return Math.max(actionRect.height, popoverRect.height);
868868
}
869869

870+
// Size is determined by the content
871+
if (this.#resizeWasMade || this.blockSizeMatch === "content") {
872+
return popoverRect.height;
873+
}
874+
870875
// Size is the same as the `actionElement`
871876
setProperty(this.el, POPOVER_BLOCK_SIZE, actionRect.height);
872877
return actionRect.height;

0 commit comments

Comments
 (0)