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

Commit ddfe523

Browse files
committed
fix(disableScroll): fix disable scroll breaking layout for fixed page
layouts references #3218
1 parent b8897db commit ddfe523

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/util/util.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@ angular.module('material.core')
117117
applyStyles(body, {
118118
position: 'fixed',
119119
width: '100%',
120-
overflowY: 'scroll',
121120
top: -scrollOffset + 'px'
122121
});
122+
123+
applyStyles(htmlNode, {
124+
overflowY: 'scroll'
125+
});
123126
}
124127

125-
applyStyles(htmlNode, {
126-
overflowY: 'hidden'
127-
});
128128

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

0 commit comments

Comments
 (0)