mirror of
https://github.com/esjeon/krohnkite.git
synced 2024-10-03 23:07:13 +03:00
take account of master size when adjusting TCL
This commit is contained in:
parent
42e465d5fa
commit
a14f12572e
@ -38,7 +38,7 @@ class ThreeColumnLayout implements ILayout {
|
||||
if (basisIndex < 0)
|
||||
return;
|
||||
|
||||
if (tiles.length === 2) {
|
||||
if (tiles.length === this.masterSize + 1) {
|
||||
this.masterRatio = LayoutUtils.adjustAreaHalfWeights(
|
||||
area,
|
||||
this.masterRatio,
|
||||
@ -46,7 +46,7 @@ class ThreeColumnLayout implements ILayout {
|
||||
basisIndex,
|
||||
delta,
|
||||
true);
|
||||
} else if (tiles.length >= 3) {
|
||||
} else if (tiles.length > this.masterSize + 1) {
|
||||
let basisGroup;
|
||||
if (basisIndex < this.masterSize)
|
||||
basisGroup = 1; /* master */
|
||||
|
Loading…
Reference in New Issue
Block a user