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

Commit

Permalink
fix(collapse): set overflow to hidden on transition
Browse files Browse the repository at this point in the history
- When collapse is transitioning, set `overflow: hidden` to avoid possibility of scrollbars changing size
  • Loading branch information
wesleycho committed Aug 19, 2016
1 parent 2ade054 commit 007fd9b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/collapse/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,16 @@ angular.module('ui.bootstrap.collapse', [])
$animateCss(element, {
addClass: 'in',
easing: 'ease',
css: {
overflow: 'hidden'
},
to: getScrollFromElement(element[0])
}).start()['finally'](expandDone);
} else {
$animate.addClass(element, 'in', {
css: {
overflow: 'hidden'
},
to: getScrollFromElement(element[0])
}).then(expandDone);
}
Expand Down

0 comments on commit 007fd9b

Please sign in to comment.