File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 37233723
37243724 for ( var y = 1 ; y <= opts . rows ; y ++ ) {
37253725 styles += ( opts . namespace + ' [data-sizey="' + y + '"] { height:' +
3726- ( full_width ? 'auto' : ( ( y * opts . widget_base_dimensions [ 1 ] ) + ( ( y - 1 ) * opts . widget_margins [ 1 ] ) ) ) + 'px; }\n' ) ;
3726+ ( full_width ? 'auto' : ( ( y * opts . widget_base_dimensions [ 1 ] ) + ( ( y - 1 ) * opts . widget_margins [ 1 ] ) ) ) + ( full_width ? '' : 'px' ) + '; }\n' ) ;
3727+
37273728 }
37283729
37293730 for ( var x = 1 ; x <= opts . cols ; x ++ ) {
37303731 styles += ( opts . namespace + ' [data-sizex="' + x + '"] { width:' +
3731- ( full_width ? ( $ ( window ) . width ( ) - this . options . widget_margins [ 0 ] * 2 ) :
3732- ( ( x * opts . widget_base_dimensions [ 0 ] ) + ( ( x - 1 ) * opts . widget_margins [ 0 ] ) ) ) + 'px; }\n' ) ;
3732+ ( full_width ? ( this . $wrapper . width ( ) - this . options . widget_margins [ 0 ] * 2 ) : ( ( x * opts . widget_base_dimensions [ 0 ] ) + ( ( x - 1 ) * opts . widget_margins [ 0 ] ) ) ) + 'px; }\n' ) ;
3733+
37333734 }
37343735
37353736 this . remove_style_tags ( ) ;
You can’t perform that action at this time.
0 commit comments