We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3c28af commit ad3b82eCopy full SHA for ad3b82e
src/GridLayout.vue
@@ -220,6 +220,10 @@
220
}
221
//console.log(eventName + " id=" + id + ", x=" + x + ", y=" + y);
222
var l = getLayoutItem(this.layout, id);
223
+ //GetLayoutItem sometimes returns null object
224
+ if (l == null){
225
+ l = {x:0, y:0}
226
+ }
227
l.x = x;
228
l.y = y;
229
// Move the element to the dragged ___location.
@@ -244,6 +248,10 @@
244
248
this.isDragging = false;
245
249
246
250
251
+ //GetLayoutItem sometimes return null object
252
253
+ l = {h:0, w:0}
254
247
255
l.h = h;
256
l.w = w;
257
compact(this.layout, this.verticalCompact);
0 commit comments