File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 22* @Author : Alex Dong
33* @Date : 2020-07-29 13:21:07
44* @Last Modified by: Alex Dong
5- * @Last Modified time: 2021-03-18 20:40:21
5+ * @Last Modified time: 2021-06-02 11:06:48
66*/
77
88define ( [
@@ -55,7 +55,7 @@ define([
5555 var classes = selector + ' ' + iClass ;
5656 var padding = options . padding ;
5757 var float = $ ( 'body' ) . hasClass ( 'rtl' ) ? 'right' : 'left' ;
58- var style = padding ? classes + '{float: ' + float + '; padding: 0 ' + padding + 'px; box-sizing: border-box} ' + selector + '{margin: 0 -' + padding + 'px}' : '' ;
58+ var style = ( typeof padding !== 'undefined' ) ? classes + '{float: ' + float + '; padding: 0 ' + padding + 'px; box-sizing: border-box} ' + selector + '{margin: 0 -' + padding + 'px}' : '' ;
5959 $head . append ( '<style type="text/css" >' + style + '</style>' ) ;
6060 style = '' ;
6161 if ( options . slidesToShow ) {
You can’t perform that action at this time.
0 commit comments