mirror of
https://github.com/mathuo/dockview
synced 2025-03-10 07:52:07 +00:00
fix: splitview layout view size with hidden view
This commit is contained in:
parent
5b9dbdf57e
commit
eda3ea1210
@ -811,9 +811,10 @@ export class Splitview {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const sashCount = this.viewItems.length - 1;
|
const visibleViewItemCount = this.viewItems.filter((i) => i.visible).length
|
||||||
const marginReducedSize =
|
|
||||||
(this.margin * sashCount) / this.viewItems.length;
|
const sashCount = visibleViewItemCount - 1
|
||||||
|
const marginReducedSize = (this.margin * sashCount) / visibleViewItemCount
|
||||||
|
|
||||||
let totalLeftOffset = 0;
|
let totalLeftOffset = 0;
|
||||||
const viewLeftOffsets: number[] = [];
|
const viewLeftOffsets: number[] = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user