From ef7c9785447111a24d3c39ece544d13fd0f9692b Mon Sep 17 00:00:00 2001 From: mhartington Date: Tue, 20 Feb 2018 16:45:52 -0500 Subject: [PATCH] docs(): update docs --- .../core/src/components/popover/animations/ios.enter.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/core/src/components/popover/animations/ios.enter.ts b/packages/core/src/components/popover/animations/ios.enter.ts index 29e2c15d82..03412823a4 100644 --- a/packages/core/src/components/popover/animations/ios.enter.ts +++ b/packages/core/src/components/popover/animations/ios.enter.ts @@ -4,6 +4,7 @@ import { Animation } from '../../../index'; * iOS Popover Enter Animation */ export default function iosEnterAnimation(Animation: Animation, baseEl: HTMLElement, ev?: Event): Promise { + debugger; let originY = 'top'; let originX = 'left'; @@ -77,11 +78,15 @@ export default function iosEnterAnimation(Animation: Animation, baseEl: HTMLElem // make it pop up if there's room above if ( - targetTop + targetHeight + contentHeight > bodyHeight && - targetTop - contentHeight > 0 + (targetTop + targetHeight + contentHeight) > bodyHeight && + (targetTop - contentHeight) > 0 ) { arrowCSS.top = targetTop - (arrowHeight + 1); + console.log(arrowCSS) + console.log(targetTop) + console.log(contentHeight) popoverCSS.top = targetTop - contentHeight - (arrowHeight - 1); + baseEl.className = baseEl.className + ' popover-bottom'; originY = 'bottom'; // If there isn't room for it to pop up above the target cut it off