diff --git a/src/components/select/select.js b/src/components/select/select.js index d25a43aa5cd..1bba41a1687 100755 --- a/src/components/select/select.js +++ b/src/components/select/select.js @@ -731,6 +731,9 @@ function SelectProvider($$interimElementProvider) { if (opts.disableParentScroll) { opts.disableTarget = opts.parent.find('md-content'); if (!opts.disableTarget.length) opts.disableTarget = opts.parent; + if ($mdUtil.floatingScrollbars()) { + opts.disableTarget.css('margin-right', '16px'); + } opts.lastOverflow = opts.disableTarget.css('overflow'); opts.disableTarget.css('overflow', 'hidden'); } @@ -857,6 +860,7 @@ function SelectProvider($$interimElementProvider) { if (opts.disableParentScroll && $mdUtil.floatingScrollbars()) { opts.disableTarget.css('overflow', opts.lastOverflow); + opts.disableTarget.css('margin-right', '0px'); delete opts.lastOverflow; delete opts.disableTarget; }