Update outside popover styles
This commit is contained in:
parent
06556325a1
commit
a880c5e62a
|
@ -38,8 +38,9 @@ export default function positionDropdown(element, opts) {
|
||||||
styles = customUpdate(anchorBounds, elementBounds, styles)
|
styles = customUpdate(anchorBounds, elementBounds, styles)
|
||||||
} else {
|
} else {
|
||||||
// Determine vertical styles
|
// Determine vertical styles
|
||||||
if (align === "right-outside") {
|
if (align === "right-outside" || align === "left-outside") {
|
||||||
styles.top = anchorBounds.top
|
styles.top = anchorBounds.bottom - elementBounds.height
|
||||||
|
styles.maxHeight = maxHeight
|
||||||
} else if (
|
} else if (
|
||||||
window.innerHeight - anchorBounds.bottom <
|
window.innerHeight - anchorBounds.bottom <
|
||||||
(maxHeight || 100)
|
(maxHeight || 100)
|
||||||
|
|
Loading…
Reference in New Issue