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

Commit

Permalink
fix(collapse): revert change to transition css
Browse files Browse the repository at this point in the history
- Revert change to `getScrollFromElement` function

Closes #6196
Fixes #6194
  • Loading branch information
wesleycho committed Aug 22, 2016
1 parent 148371f commit 515bcf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/collapse/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 515bcf2

Please sign in to comment.