Skip to content

Commit 4dfd70e

Browse files
committed
formatted files
1 parent 50767ce commit 4dfd70e

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

packages/widgets/src/docklayout.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,10 @@ export class DockLayout extends Layout {
306306
// the gap between handle regions is bridged:
307307
// 'vertical' primary (ns-resize, horizontal bar) → expand Y bounds
308308
// 'horizontal' primary (ew-resize, vertical bar) → expand X bounds
309-
let left = rect.left, right = rect.right;
310-
let top = rect.top, bottom = rect.bottom;
309+
let left = rect.left,
310+
right = rect.right;
311+
let top = rect.top,
312+
bottom = rect.bottom;
311313
if (primaryOrientation === 'vertical') {
312314
top -= tol;
313315
bottom += tol;
@@ -316,7 +318,12 @@ export class DockLayout extends Layout {
316318
right += tol;
317319
}
318320

319-
if (clientX >= left && clientX <= right && clientY >= top && clientY <= bottom) {
321+
if (
322+
clientX >= left &&
323+
clientX <= right &&
324+
clientY >= top &&
325+
clientY <= bottom
326+
) {
320327
return candidate;
321328
}
322329
}

packages/widgets/src/splitpanel.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,11 @@ export class SplitPanel extends Panel {
396396
const lo = layout.orientation === 'horizontal' ? r.top : r.left;
397397
const hi = layout.orientation === 'horizontal' ? r.bottom : r.right;
398398
if (crossPos >= lo - tol && crossPos <= hi + tol) {
399-
return { panel: candidate, index: i, delta: Math.max(0, crossPos - lo) };
399+
return {
400+
panel: candidate,
401+
index: i,
402+
delta: Math.max(0, crossPos - lo)
403+
};
400404
}
401405
}
402406
}

0 commit comments

Comments
 (0)