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

Commit

Permalink
fix(disableScroll): fix z-index getting set too large
Browse files Browse the repository at this point in the history
closes #3501
  • Loading branch information
rschmukler committed Jun 30, 2015
1 parent 1a15d99 commit 44fda3d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ angular.module('material.core')

// Creates a virtual scrolling mask to absorb touchmove, keyboard, scrollbar clicking, and wheel events
function disableElementScroll() {
var zIndex = $window.getComputedStyle(element[0]).zIndex - 1;
if (isNaN(zIndex)) zIndex = 50;
var zIndex = 50;
var scrollMask = angular.element(
'<div class="md-scroll-mask" style="z-index: ' + zIndex + '">' +
' <div class="md-scroll-mask-bar"></div>' +
Expand Down

0 comments on commit 44fda3d

Please sign in to comment.