day8 / re-com

A ClojureScript library of reusable components for Reagent
https://re-com.day8.com.au
MIT License
798 stars 147 forks source link

Popovers not positioned correctly for absolutely positioned anchors #112

Open Gregg8 opened 7 years ago

Gregg8 commented 7 years ago

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.

MawiraIke commented 2 years ago

@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?

Gregg8 commented 2 years ago

@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

MawiraIke commented 2 years ago

Thanks @Gregg8 let me try that.