aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/popover/popover.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/components/popover/popover.js b/src/components/popover/popover.js
index 09e07b4c..1e8b3fb6 100644
--- a/src/components/popover/popover.js
+++ b/src/components/popover/popover.js
@@ -109,16 +109,10 @@ const Popover = {
if (origin.y + content.offsetHeight > yBounds.max) usingTop = true
if (origin.y - content.offsetHeight < yBounds.min) usingTop = false
- let vPadding = 0
- if (this.removePadding && usingTop) {
- const anchorStyle = getComputedStyle(anchorEl)
- vPadding = parseFloat(anchorStyle.paddingTop) + parseFloat(anchorStyle.paddingBottom)
- }
-
const yOffset = (this.offset && this.offset.y) || 0
const translateY = usingTop
- ? yOffset - content.offsetHeight - vPadding
- : yOffset + anchorHeight + vPadding
+ ? yOffset - content.offsetHeight
+ : yOffset + anchorHeight
const xOffset = (this.offset && this.offset.x) || 0
const translateX = horizOffset + xOffset