Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(position): auto position append to body
Browse files Browse the repository at this point in the history
- Use the body as the viewport to determine available size for
auto position when the target element is append-to-body

Closes #5582
Fixes #5576
  • Loading branch information
RobJacobs committed Mar 4, 2016
1 parent c15dcbd commit a516178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/position/position.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ angular.module('ui.bootstrap.position', [])
var targetElemPos = {top: 0, left: 0, placement: ''};

if (placement[2]) {
var viewportOffset = this.viewportOffset(hostElem);
var viewportOffset = this.viewportOffset(hostElem, appendToBody);

var targetElemStyle = $window.getComputedStyle(targetElem);
var adjustedSize = {
Expand Down

0 comments on commit a516178

Please sign in to comment.