re-com icon indicating copy to clipboard operation
re-com copied to clipboard

Popovers not positioned correctly for absolutely positioned anchors

Open Gregg8 opened this issue 9 years ago • 3 comments

If an anchor has :position "absolute" styling (probably also "fixed". To be tested), the popover is positioned away from the anchor, and in some cases the anchor also changes position.

Gregg8 avatar Oct 14 '16 05:10 Gregg8

@Gregg8 are you still getting this issue in the latest version of re-com? I can't reproduce this issue in re-com version 2.13.2. Maybe it was fixed along the way?

MawiraIke avatar Dec 27 '21 05:12 MawiraIke

@MawiraIke Still there. To reproduce, simply add:

:style {:position "absolute"} ;; or "fixed"

after the highlighted line in the following link: https://github.com/day8/re-com/blob/master/src/re_demo/popover_dialog_demo.cljs#L77

Without the line... image

WITH the line... image

Gregg8 avatar Jan 04 '22 06:01 Gregg8

Thanks @Gregg8 let me try that.

MawiraIke avatar Jan 04 '22 06:01 MawiraIke