improve touch support

This commit is contained in:
Pavel Reznikov 2015-01-08 19:41:07 -08:00
commit bbe9a08caf
5 changed files with 32 additions and 4 deletions

View file

@ -97,6 +97,10 @@
margin-bottom: 20px;
}
.grid-stack-item .ui-resizable-handle {
display: none;
}
.grid-stack {
height: auto !important;
}

View file

@ -331,7 +331,8 @@
min_width: 768,
float: false,
_class: 'grid-stack-' + (Math.random() * 10000).toFixed(0),
animate: Boolean(this.container.attr('data-gs-animate')) || false
animate: Boolean(this.container.attr('data-gs-animate')) || false,
always_show_resize_handle: opts.always_show_resize_handle || false
});
this.container.addClass(this.opts._class);
@ -524,7 +525,7 @@
self._update_container_height();
}
}).resizable({
autoHide: true,
autoHide: !this.opts.always_show_resize_handle,
handles: 'se',
minHeight: this.opts.cell_height - 10,
minWidth: 70,