Skip to content

Commit

Permalink
fix(popover): fix popover position on Internet Explorer
Browse files Browse the repository at this point in the history
Closes #2861
  • Loading branch information
vjrantal authored and perrygovier committed Mar 24, 2015
1 parent b8df44d commit 893fcbe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/angular/service/popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ function($ionicModal, $ionicPosition, $document, $window) {
var buttonOffset = $ionicPosition.offset(targetEle);
var popoverWidth = popoverEle.prop('offsetWidth');
var popoverHeight = popoverEle.prop('offsetHeight');
var bodyWidth = $document[0].body.clientWidth;
// clientHeight doesn't work on all platforms for body
// Use innerWidth and innerHeight, because clientWidth and clientHeight
// doesn't work consistently for body on all platforms
var bodyWidth = $window.innerWidth;
var bodyHeight = $window.innerHeight;

var popoverCSS = {
Expand Down

0 comments on commit 893fcbe

Please sign in to comment.