From 007fd9be4343c6a3a39f3f43b4fd83c9a20c443c Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Fri, 19 Aug 2016 09:50:50 -0700 Subject: [PATCH] fix(collapse): set overflow to hidden on transition - When collapse is transitioning, set `overflow: hidden` to avoid possibility of scrollbars changing size --- src/collapse/collapse.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/collapse/collapse.js b/src/collapse/collapse.js index 6c512afbe3..eedb211d73 100644 --- a/src/collapse/collapse.js +++ b/src/collapse/collapse.js @@ -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); }