diff --git a/src/collapse/collapse.js b/src/collapse/collapse.js index 853ceb26ff..d809a1df91 100644 --- a/src/collapse/collapse.js +++ b/src/collapse/collapse.js @@ -38,9 +38,9 @@ angular.module('ui.bootstrap.collapse', []) function getScrollFromElement(element) { if (horizontal) { - return {width: ''}; + return {width: element.scrollWidth + 'px'}; } - return {height: ''}; + return {height: element.scrollHeight + 'px'}; } function expand() {