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

Commit d59bd5e

Browse files
committed
fix(mdUtil): fix disable scroll adding extra scroll-bars on IE
closes #5300 Thanks @van88 for the investigation.
1 parent a17d9be commit d59bd5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/util/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ function UtilFactory($document, $timeout, $compile, $rootScope, $$mdAnimate, $in
234234
var scrollOffset = $mdUtil.scrollTop(body);
235235
var clientWidth = body.clientWidth;
236236

237-
if (body.scrollHeight > body.clientHeight) {
237+
if (body.scrollHeight > body.clientHeight + 1) {
238238
applyStyles(body, {
239239
position: 'fixed',
240240
width: '100%',

0 commit comments

Comments
 (0)