Skip to content

Commit

Permalink
* popover: fix 100% width not equal to trigger's actual size.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Jun 26, 2024
1 parent a89963b commit 5c05714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/popover/src/vanilla/popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export class Popover<O extends PopoverOptions = PopoverOptions, E extends Compon
const style: JSX.CSSProperties = {};
const {width, height} = this.options;
if (width) {
style.width = typeof width === 'function' ? width() : (width === '100%' ? $(trigger as HTMLElement).width() : width);
style.width = typeof width === 'function' ? width() : (width === '100%' ? $(trigger as HTMLElement).outerWidth() : width);
}
if (height) {
style.height = typeof height === 'function' ? height() : height;
Expand Down

0 comments on commit 5c05714

Please sign in to comment.