fix offset Y bug

This commit is contained in:
Shpuld Shpuldson 2020-02-19 08:51:55 +02:00
parent 16302b5630
commit 238afc4c01

View file

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