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

Commit 515bcf2

Browse files
committed
fix(collapse): revert change to transition css
- Revert change to `getScrollFromElement` function Closes #6196 Fixes #6194
1 parent 148371f commit 515bcf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/collapse/collapse.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ angular.module('ui.bootstrap.collapse', [])
3838

3939
function getScrollFromElement(element) {
4040
if (horizontal) {
41-
return {width: ''};
41+
return {width: element.scrollWidth + 'px'};
4242
}
43-
return {height: ''};
43+
return {height: element.scrollHeight + 'px'};
4444
}
4545

4646
function expand() {

0 commit comments

Comments
 (0)