From dd22151777114be0b5c8a1b29f3446077cfb6ed1 Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Sun, 12 Apr 2020 14:28:40 +0900 Subject: [PATCH] make grid option not reused --- nodes/ui_base.html | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/nodes/ui_base.html b/nodes/ui_base.html index 8d125379..f35c5113 100644 --- a/nodes/ui_base.html +++ b/nodes/ui_base.html @@ -2072,17 +2072,6 @@ trayBody.css('overflow','auto'); trayBody.append(editor); - ///////////////////////////////////////// - // Gridstack.js option - //////////////////////////////////////// - var options = { - cellHeight: 46, - verticalMargin: 1, - float: true, - alwaysShowResizeHandle: true, - disableOneColumnMode : true - }; - ///////////////////////////////////////// // Editor screen generation ///////////////////////////////////////// @@ -2092,6 +2081,14 @@ widgetResize = []; widgetDrag = []; for (var cnt=0; cnt < groups.length; cnt++) { + // Gridstack.js option + var options = { + cellHeight: 46, + verticalMargin: 1, + float: true, + alwaysShowResizeHandle: true, + disableOneColumnMode : true + }; var gridID='#grid' + cnt; // gridstack generation $(gridID).gridstack(options);