Skip to content

Commit 1ef5bb4

Browse files
author
shuzarevich
committed
fix(flow): correct padding tuple order for child bounding
Use [left, top, right, bottom] destructuring in FitToChildNodesAndGroups._calculateChildrenBounding to match expected edge order and avoid incorrect bounds expansion.
1 parent 454a323 commit 1ef5bb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

projects/f-flow/src/domain/f-node/fit-to-child-nodes-and-groups/fit-to-child-nodes-and-groups.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class FitToChildNodesAndGroups implements IExecution<FitToChildNodesAndGr
7171

7272
private _calculateChildrenBounding(
7373
directChildren: FNodeBase[],
74-
[top, right, bottom, left]: [number, number, number, number],
74+
[left, top, right, bottom]: [number, number, number, number],
7575
): IRect {
7676
let childrenBounding = this._unionRect(directChildren);
7777
childrenBounding = RectExtensions.initialize(

0 commit comments

Comments
 (0)