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 disable scroll breaking layout for fixed page
Browse files Browse the repository at this point in the history
layouts

references #3218
  • Loading branch information
rschmukler committed Jun 28, 2015
1 parent b8897db commit ddfe523
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ angular.module('material.core')
applyStyles(body, {
position: 'fixed',
width: '100%',
overflowY: 'scroll',
top: -scrollOffset + 'px'
});

applyStyles(htmlNode, {
overflowY: 'scroll'
});
}

applyStyles(htmlNode, {
overflowY: 'hidden'
});

if (body.clientWidth < clientWidth) applyStyles(body, {overflow: 'hidden'});

Expand Down

0 comments on commit ddfe523

Please sign in to comment.