Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7cb3da3

Browse files
committed
fix direct resizable calling
1 parent 6d8ce22 commit 7cb3da3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gridstack.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,8 +1189,8 @@
11891189
node._beforeDragX = node.x;
11901190
node._beforeDragY = node.y;
11911191

1192-
el.resizable('option', 'minWidth', cellWidth * (node.minWidth || 1));
1193-
el.resizable('option', 'minHeight', strictCellHeight * (node.minHeight || 1));
1192+
self.dd.resizable(el, 'option', 'minWidth', cellWidth * (node.minWidth || 1));
1193+
self.dd.resizable(el, 'option', 'minHeight', strictCellHeight * (node.minHeight || 1));
11941194

11951195
if (event.type == 'resizestart') {
11961196
o.find('.grid-stack-item').trigger('resizestart');
@@ -1398,9 +1398,9 @@
13981398

13991399
node.noResize = !(val || false);
14001400
if (node.noResize || self._isOneColumnMode()) {
1401-
el.resizable('disable');
1401+
self.dd.resizable(el, 'disable');
14021402
} else {
1403-
el.resizable('enable');
1403+
self.dd.resizable(el, 'enable');
14041404
}
14051405
});
14061406
return this;

0 commit comments

Comments
 (0)