mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
update var name
This commit is contained in:
parent
8262f977f0
commit
fb1c3ac85f
@ -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,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user