mirror of
https://github.com/mathuo/dockview
synced 2025-07-16 15:06:02 +00:00
fix: mistake of sashes offset when custom gap
This commit is contained in:
parent
ee74785d7e
commit
1cd4251083
@ -825,7 +825,7 @@ export class Splitview {
|
|||||||
viewLeftOffsets.push(totalLeftOffset);
|
viewLeftOffsets.push(totalLeftOffset);
|
||||||
|
|
||||||
const offset = Math.min(
|
const offset = Math.min(
|
||||||
Math.max(0, totalLeftOffset - 2),
|
Math.max(0, totalLeftOffset - (1 + this.margin) / 2),
|
||||||
this.size - this.margin
|
this.size - this.margin
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user