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

Commit 58f1813

Browse files
JuliaUsanovawesleycho
authored andcommitted
fix(position): correct scrollbar width calculation
Closes #6273
1 parent 9666c64 commit 58f1813

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
@@ -130,7 +130,7 @@ angular.module('ui.bootstrap.position', [])
130130
var paddingRight = this.parseStyle(elemStyle.paddingRight);
131131
var paddingBottom = this.parseStyle(elemStyle.paddingBottom);
132132
var scrollParent = this.scrollParent(elem, false, true);
133-
var scrollbarWidth = this.scrollbarWidth(scrollParent, BODY_REGEX.test(scrollParent.tagName));
133+
var scrollbarWidth = this.scrollbarWidth(BODY_REGEX.test(scrollParent.tagName));
134134

135135
return {
136136
scrollbarWidth: scrollbarWidth,

0 commit comments

Comments
 (0)