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

Commit a516178

Browse files
committed
fix(position): auto position append to body
- 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
1 parent c15dcbd commit a516178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/position/position.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ angular.module('ui.bootstrap.position', [])
387387
var targetElemPos = {top: 0, left: 0, placement: ''};
388388

389389
if (placement[2]) {
390-
var viewportOffset = this.viewportOffset(hostElem);
390+
var viewportOffset = this.viewportOffset(hostElem, appendToBody);
391391

392392
var targetElemStyle = $window.getComputedStyle(targetElem);
393393
var adjustedSize = {

0 commit comments

Comments
 (0)