File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 531
531
// Note: DOMNode.style.paddingRight returns the actual value or '' if not set
532
532
// while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
533
533
534
- const ComputedStyle = document .getComputedStyle ;
534
+ const computedStyle = window .getComputedStyle ;
535
535
const body = document .body ;
536
536
537
537
// Adjust fixed content padding
551
551
});
552
552
553
553
// Adjust navbar-toggler margin
554
- selectAll (' .navbar-toggler' ).forEach (element => {
554
+ selectAll (' .navbar-toggler' ).forEach (el => {
555
555
const actualMargin = el .style .marginRight ;
556
556
const calculatedMargin = computedStyle (el).marginRight ;
557
557
setAttr (el, ' data-margin-right' , actualMargin);
561
561
// Adjust body padding
562
562
const actualPadding = body .style .paddingRight ;
563
563
const calculatedPadding = computedStyle (body).paddingRight ;
564
- setAtttr (body, ' data-padding-right' , actualPadding);
564
+ setAttr (body, ' data-padding-right' , actualPadding);
565
565
body .style .paddingRight = ` ${ parseFloat (calculatedPadding) + this .scrollbarWidth } px` ;
566
566
}
567
567
},
You can’t perform that action at this time.
0 commit comments