@@ -708,11 +708,13 @@ export default {
708
708
}
709
709
const modal = this . $refs . modal
710
710
const isModalOverflowing = modal . scrollHeight > document . documentElement . clientHeight
711
+ /* istanbul ignore if: can't test in JSDOM */
711
712
if ( ! this . isBodyOverflowing && isModalOverflowing ) {
712
713
modal . style . paddingLeft = `${ this . scrollbarWidth } px`
713
714
} else {
714
715
modal . style . paddingLeft = ''
715
716
}
717
+ /* istanbul ignore else: can't test in JSDOM */
716
718
if ( this . isBodyOverflowing && ! isModalOverflowing ) {
717
719
modal . style . paddingRight = `${ this . scrollbarWidth } px`
718
720
} else {
@@ -780,6 +782,7 @@ export default {
780
782
if ( body . _paddingChangedForModal ) {
781
783
// Restore fixed content padding
782
784
body . _paddingChangedForModal . forEach ( el => {
785
+ /* istanbul ignore next: can't test in JSDOM */
783
786
if ( hasAttr ( el , 'data-padding-right' ) ) {
784
787
el . style . paddingRight = getAttr ( el , 'data-padding-right' ) || ''
785
788
removeAttr ( el , 'data-padding-right' )
@@ -789,6 +792,7 @@ export default {
789
792
if ( body . _marginChangedForModal ) {
790
793
// Restore sticky content and navbar-toggler margin
791
794
body . _marginChangedForModal . forEach ( el => {
795
+ /* istanbul ignore next: can't test in JSDOM */
792
796
if ( hasAttr ( el , 'data-margin-right' ) ) {
793
797
el . style . marginRight = getAttr ( el , 'data-margin-right' ) || ''
794
798
removeAttr ( el , 'data-margin-right' )
0 commit comments