fix: mistake of sashes offset when custom gap

This commit is contained in:
RayJason 2024-07-30 23:10:22 +08:00
parent ee74785d7e
commit 1cd4251083

View File

@ -825,7 +825,7 @@ export class Splitview {
viewLeftOffsets.push(totalLeftOffset);
const offset = Math.min(
Math.max(0, totalLeftOffset - 2),
Math.max(0, totalLeftOffset - (1 + this.margin) / 2),
this.size - this.margin
);