Yes
el-popover
Hoping el-popover add positionFixed property
see https://github.com/FezVrasta/popper.js/pull/487#issuecomment-345430318
What is the use case of this property?
Sorry, Poor English
Need
el-popoverdo not append to body. In my caseel-popovermust be component direct children instead of body.
when append-to-body set to false the el-popover It doesn't append to body, but el-popover position is absolute. Here needs position is fixed because it's parent element style overflow: hidden
<div class="_com-grids-selector-wrapper">
<el-popover ref="popoverGridsSelector"
@show="$emit('show')"
@hide="$emit('hide')"
placement="top"
trigger="hover"
v-model="visibile"
:open-delay="300"
:offset="0"
:append-to-body="false"
:popper-options="{
boundariesElement: 'body',
gpuAcceleration: true,
positionFixed: true,
preventOverflow: true,
}">
<div class="_com-grids-selector">
.....
Sorry, Poor English
Need
el-popoverdo not append to body. In my caseel-popovermust be component direct children instead of body.when
append-to-bodyset tofalsethe el-popover It doesn't append to body, but el-popover position is absolute. Here needs position is fixed because it's parent element styleoverflow: hidden<div class="_com-grids-selector-wrapper"> <el-popover ref="popoverGridsSelector" @show="$emit('show')" @hide="$emit('hide')" placement="top" trigger="hover" v-model="visibile" :open-delay="300" :offset="0" :append-to-body="false" :popper-options="{ boundariesElement: 'body', gpuAcceleration: true, positionFixed: true, preventOverflow: true, }"> <div class="_com-grids-selector"> .....Have you solved it?
Have you solved it?positionFixed: true
Most helpful comment
when
append-to-bodyset tofalsethe el-popover It doesn't append to body, but el-popover position is absolute. Here needs position is fixed because it's parent element styleoverflow: hidden