mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(popover): popover-top as the default
This commit is contained in:
4
js/angular/service/popover.js
vendored
4
js/angular/service/popover.js
vendored
@@ -101,10 +101,10 @@ function($ionicModal, $ionicPosition, $document, $window) {
|
||||
// make it pop up
|
||||
if (buttonOffset.top + buttonOffset.height + popoverHeight > bodyHeight) {
|
||||
popoverCSS.top = buttonOffset.top - popoverHeight;
|
||||
popoverEle.removeClass('popover-top').addClass('popover-bottom');
|
||||
popoverEle.addClass('popover-bottom');
|
||||
} else {
|
||||
popoverCSS.top = buttonOffset.top + buttonOffset.height;
|
||||
popoverEle.removeClass('popover-bottom').addClass('popover-top');
|
||||
popoverEle.removeClass('popover-bottom');
|
||||
}
|
||||
|
||||
arrowEle.css({
|
||||
|
||||
Reference in New Issue
Block a user