Permalink
Browse files

fix(modal): Minor bug fixes

  • Loading branch information...
tmorehouse committed Sep 12, 2017
1 parent 011afd4 commit 6cfc68271aab567a67e5d0c4f238e0bb9f76d02e
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/components/modal.vue
@@ -531,7 +531,7 @@
// Note: DOMNode.style.paddingRight returns the actual value or '' if not set
// while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
const ComputedStyle = document.getComputedStyle;
const computedStyle = window.getComputedStyle;
const body = document.body;
// Adjust fixed content padding
@@ -551,7 +551,7 @@
});
// Adjust navbar-toggler margin
selectAll('.navbar-toggler').forEach(element => {
selectAll('.navbar-toggler').forEach(el => {
const actualMargin = el.style.marginRight;
const calculatedMargin = computedStyle(el).marginRight;
setAttr(el, 'data-margin-right', actualMargin);
@@ -561,7 +561,7 @@
// Adjust body padding
const actualPadding = body.style.paddingRight;
const calculatedPadding = computedStyle(body).paddingRight;
setAtttr(body, 'data-padding-right', actualPadding);
setAttr(body, 'data-padding-right', actualPadding);
body.style.paddingRight = `${parseFloat(calculatedPadding) + this.scrollbarWidth}px`;
}
},

0 comments on commit 6cfc682

Please sign in to comment.