more fixes, add fullwidth

This commit is contained in:
Shpuld Shpuldson 2020-11-24 14:52:01 +02:00
parent 7b99d98c55
commit 8b775f94a9
12 changed files with 63 additions and 47 deletions

View file

@ -99,7 +99,7 @@ const Popover = {
const yOffset = (this.offset && this.offset.y) || 0
const translateY = usingTop
? -anchorEl.offsetHeight - yOffset - content.offsetHeight
: yOffset
: -yOffset
const xOffset = (this.offset && this.offset.x) || 0
const translateX = (anchorEl.offsetWidth * 0.5) - content.offsetWidth * 0.5 + horizOffset + xOffset