From 58f1813aca15051bfe33542bff57c889f8993e0e Mon Sep 17 00:00:00 2001 From: JuliaUsanova Date: Tue, 4 Oct 2016 21:59:59 +0300 Subject: [PATCH] fix(position): correct scrollbar width calculation Closes #6273 --- src/position/position.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/position/position.js b/src/position/position.js index 9891f5d6d3..3ab066abb5 100644 --- a/src/position/position.js +++ b/src/position/position.js @@ -130,7 +130,7 @@ angular.module('ui.bootstrap.position', []) var paddingRight = this.parseStyle(elemStyle.paddingRight); var paddingBottom = this.parseStyle(elemStyle.paddingBottom); var scrollParent = this.scrollParent(elem, false, true); - var scrollbarWidth = this.scrollbarWidth(scrollParent, BODY_REGEX.test(scrollParent.tagName)); + var scrollbarWidth = this.scrollbarWidth(BODY_REGEX.test(scrollParent.tagName)); return { scrollbarWidth: scrollbarWidth,