We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ed85d5 commit bc50f0bCopy full SHA for bc50f0b
packages/kit-headless/src/components/popover/floating.tsx
@@ -66,9 +66,10 @@ export const FloatingPopover = component$((props: PropsOf<'div'>) => {
66
if (isRTL) {
67
const documentWidth = document.body.getBoundingClientRect().width;
68
const popoverWidth = popover.getBoundingClientRect().width;
69
+ const boundaryX = Math.max(x, 0);
70
71
Object.assign(popover.style, {
- right: `${documentWidth - x - popoverWidth}px`,
72
+ right: `${documentWidth - boundaryX - popoverWidth}px`,
73
top: `${y}px`,
74
transform: context.transform,
75
});
0 commit comments