Skip to content

Commit 17edf41

Browse files
committed
fixed possible bug related to jbaysolutions#119
1 parent 6487f91 commit 17edf41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GridLayout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
//console.log(eventName + " id=" + id + ", x=" + x + ", y=" + y);
230230
var l = getLayoutItem(this.layout, id);
231231
//GetLayoutItem sometimes returns null object
232-
if (l === null){
232+
if (l === undefined || l === null){
233233
l = {x:0, y:0}
234234
}
235235
l.x = x;
@@ -261,7 +261,7 @@
261261
}
262262
var l = getLayoutItem(this.layout, id);
263263
//GetLayoutItem sometimes return null object
264-
if (l === null){
264+
if (l === undefined || l === null){
265265
l = {h:0, w:0}
266266
}
267267
l.h = h;

0 commit comments

Comments
 (0)