El-popover positioning problem

the pop-up box nesting el-popover, in el-table will not scroll as the window scrolls

clipboard.png

clipboard.png

Mar.03,2021

Thank you for the invitation!

< hr >

element-ui encapsulates this component in a fixed position, and although you can use offset to customize the offset, it does not provide the ability to scroll along the screen.

from a practical point of view, there is no need for such a function. This is a pop-up layer. After clicking, the user needs to modify it in its original position, and there are not many scrolling scenarios to follow. Therefore, several ideas are provided for reference:
1. When a pop-up box appears, prohibit the screen scrolling
2 and package a component to achieve the same function as the popover component. However, you can follow the screen to scroll
3. When a pop-up box appears, the user scrolls the screen, and when popover is partially obscured by scrolling, close the pop-up box

. < hr >
I hope my answer will be helpful to you!

appendtobody setting false should be OK


is the problem of kissing you solved? I also encountered the same problem that I didn't know how to solve


. Finally, I checked and found that I set up height:100%, to solve


: append-to-body= "false"

.
Menu