mirror of
https://github.com/mathuo/dockview
synced 2025-03-09 23:42:05 +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;
|
||||
}
|
||||
|
||||
const sashCount = this.viewItems.length - 1;
|
||||
const marginReducedSize =
|
||||
(this.margin * sashCount) / this.viewItems.length;
|
||||
const visibleViewItemCount = this.viewItems.filter((i) => i.visible).length
|
||||
|
||||
const sashCount = visibleViewItemCount - 1
|
||||
const marginReducedSize = (this.margin * sashCount) / visibleViewItemCount
|
||||
|
||||
let totalLeftOffset = 0;
|
||||
const viewLeftOffsets: number[] = [];
|
||||
|
Loading…
Reference in New Issue
Block a user