update var name

This commit is contained in:
Evan Simkowitz 2024-08-14 19:09:22 -07:00
parent 8262f977f0
commit fb1c3ac85f
No known key found for this signature in database

View File

@ -558,18 +558,18 @@ export class LayoutModel {
const clientPoint = parentIsRow ? clientX : clientY;
const clientDiff = (this.resizeContext.resizeHandleStartPx - clientPoint) * this.resizeContext.pixelToSizeRatio;
const sizeNode1 = this.resizeContext.beforeNodeStartSize - clientDiff;
const sizeNode2 = this.resizeContext.afterNodeStartSize + clientDiff;
const beforeNodeSize = this.resizeContext.beforeNodeStartSize - clientDiff;
const afterNodeSize = this.resizeContext.afterNodeStartSize + clientDiff;
const resizeAction: LayoutTreeResizeNodeAction = {
type: LayoutTreeActionType.ResizeNode,
resizeOperations: [
{
nodeId: beforeNode.id,
size: sizeNode1,
size: beforeNodeSize,
},
{
nodeId: afterNode.id,
size: sizeNode2,
size: afterNodeSize,
},
],
};