Skip to content

Commit

Permalink
fix(util,select): extra scrollbar when select dropdown is open (angul…
Browse files Browse the repository at this point in the history
  • Loading branch information
Splaktar authored and marosoft committed Nov 11, 2018
1 parent 0a65d22 commit 4dbf427
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/core/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,6 @@ function UtilFactory($document, $timeout, $compile, $rootScope, $$mdAnimate, $in
body.style.overflow = 'hidden';
}

// This should be applied after the manipulation to the body, because
// adding a scrollbar can potentially resize it, causing the measurement
// to change.
if (hasVerticalScrollbar) {
documentElement.style.overflowY = 'scroll';
}

return function restoreScroll() {
// Reset the inline style CSS to the previous.
body.style.cssText = prevBodyStyle;
Expand Down

0 comments on commit 4dbf427

Please sign in to comment.