File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 331
331
min_width : 768 ,
332
332
float : false ,
333
333
_class : 'grid-stack-' + ( Math . random ( ) * 10000 ) . toFixed ( 0 ) ,
334
- animate : Boolean ( this . container . attr ( 'data-gs-animate' ) ) || false
334
+ animate : Boolean ( this . container . attr ( 'data-gs-animate' ) ) || false ,
335
+ always_show_resize_handle : opts . always_show_resize_handle || false
335
336
} ) ;
336
337
337
338
this . container . addClass ( this . opts . _class ) ;
524
525
self . _update_container_height ( ) ;
525
526
}
526
527
} ) . resizable ( {
527
- autoHide : true ,
528
+ autoHide : ! this . opts . always_show_resize_handle ,
528
529
handles : 'se' ,
529
530
minHeight : this . opts . cell_height - 10 ,
530
531
minWidth : 70 ,
Original file line number Diff line number Diff line change @@ -260,7 +260,8 @@ <h3>Use with knockout.js</h3>
260
260
hljs . initHighlightingOnLoad ( ) ;
261
261
$ ( function ( ) {
262
262
$ ( '.grid-stack' ) . gridstack ( {
263
- width : 12
263
+ width : 12 ,
264
+ always_show_resize_handle : / A n d r o i d | w e b O S | i P h o n e | i P a d | i P o d | B l a c k B e r r y | I E M o b i l e | O p e r a M i n i / i. test ( navigator . userAgent )
264
265
} ) ;
265
266
} ) ;
266
267
</ script >
You can’t perform that action at this time.
0 commit comments