MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / _useEntireRowArea

Method _useEntireRowArea

src/gridstack-engine.ts:103–105  ·  view source on GitHub ↗
(node: GridStackNode, nn: GridStackPosition)

Source from the content-addressed store, hash-verified

101
102 // use entire row for hitting area (will use bottom reverse sorted first) if we not actively moving DOWN and didn't already skip
103 protected _useEntireRowArea(node: GridStackNode, nn: GridStackPosition): boolean {
104 return (!this.float || this.batchMode && !this._prevFloat) && !this._hasLocked && (!node._moving || node._skipDown || nn.y <= node.y);
105 }
106
107 /** @internal fix collision on given 'node', going to given new location 'nn', with optional 'collide' node already found.
108 * return true if we moved. */

Callers 1

_fixCollisionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected