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.
2 parents 276e107 + 4a32549 commit 9875352Copy full SHA for 9875352
src/gridstack-engine.ts
@@ -417,7 +417,7 @@ export class GridStackEngine {
417
// remember it's position & width so we can restore back (1 -> 12 column) #1655 #1985
418
// IFF we're not in the middle of column resizing!
419
const saveOrig = (node.x || 0) + (node.w || 1) > this.column;
420
- if (saveOrig && this.column < this.defaultColumn && !this._inColumnResize && !this.skipCacheUpdate && (node._id ??false) && this.findCacheLayout(node, this.defaultColumn) === -1) {
+ if (saveOrig && this.column < this.defaultColumn && !this._inColumnResize && !this.skipCacheUpdate && node._id !=null && this.findCacheLayout(node, this.defaultColumn) === -1) {
421
const copy = {...node}; // need _id + positions
422
if (copy.autoPosition || copy.x === undefined) { delete copy.x; delete copy.y; }
423
else copy.x = Math.min(this.defaultColumn - 1, copy.x);
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments