diff --git a/js/widgets/widget-scroller.js b/js/widgets/widget-scroller.js index 17bb1e43..2b5c248b 100644 --- a/js/widgets/widget-scroller.js +++ b/js/widgets/widget-scroller.js @@ -204,14 +204,13 @@ // set scrollbar width to one of the following (1) explicitly set scroller_barWidth option, // (2) detected scrollbar width or (3) fallback of 15px - if (wo.scroller_barWidth !== null) + if (wo.scroller_barWidth !== null) { wo.scroller_barSetWidth = wo.scroller_barWidth; - else { + } else { var detectedWidth = tsScroller.getBarWidth(); if (detectedWidth !== null){ wo.scroller_barSetWidth = detectedWidth; - } - else { + } else { wo.scroller_barSetWidth = 15; } }