Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 20fc2d8

Browse files
Splaktarjosephperrott
authored andcommitted
fix(util,select): extra scrollbar when select dropdown is open (#11453)
1 parent 9be3821 commit 20fc2d8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/core/util/util.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -302,13 +302,6 @@ function UtilFactory($document, $timeout, $compile, $rootScope, $$mdAnimate, $in
302302
body.style.overflow = 'hidden';
303303
}
304304

305-
// This should be applied after the manipulation to the body, because
306-
// adding a scrollbar can potentially resize it, causing the measurement
307-
// to change.
308-
if (hasVerticalScrollbar) {
309-
documentElement.style.overflowY = 'scroll';
310-
}
311-
312305
return function restoreScroll() {
313306
// Reset the inline style CSS to the previous.
314307
body.style.cssText = prevBodyStyle;

0 commit comments

Comments
 (0)