fix offset Y bug
This commit is contained in:
parent
16302b5630
commit
238afc4c01
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ const Popover = {
|
|||
const yOffset = (this.offset && this.offset.y) || 0
|
||||
const translateY = usingTop
|
||||
? -anchorEl.offsetHeight - yOffset - content.offsetHeight
|
||||
: yOffset + yOffset
|
||||
: yOffset
|
||||
|
||||
const xOffset = (this.offset && this.offset.x) || 0
|
||||
const translateX = (anchorEl.offsetWidth * 0.5) - content.offsetWidth * 0.5 + horizOffset + xOffset
|
||||
|
|
Loading…
Add table
Reference in a new issue