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

Commit

Permalink
fix(select): fix scrollbar margin of select parent
Browse files Browse the repository at this point in the history
closes #1880
  • Loading branch information
rschmukler committed Apr 6, 2015
1 parent 2f33573 commit f3cd5b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit f3cd5b9

Please sign in to comment.