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

Commit 84cc2cf

Browse files
committed
fix(collapse): set overflow to hidden on transition
- When collapse is transitioning, set `overflow: hidden` to avoid possibility of scrollbars changing size Closes #6180 Fixes #5474
1 parent 2ade054 commit 84cc2cf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/collapse/collapse.js

+6
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,16 @@ angular.module('ui.bootstrap.collapse', [])
5959
$animateCss(element, {
6060
addClass: 'in',
6161
easing: 'ease',
62+
css: {
63+
overflow: 'hidden'
64+
},
6265
to: getScrollFromElement(element[0])
6366
}).start()['finally'](expandDone);
6467
} else {
6568
$animate.addClass(element, 'in', {
69+
css: {
70+
overflow: 'hidden'
71+
},
6672
to: getScrollFromElement(element[0])
6773
}).then(expandDone);
6874
}

0 commit comments

Comments
 (0)