mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 09:47:58 +01:00
Fixing layout issues
This commit is contained in:
@@ -433,12 +433,12 @@ namespace Terminal.Gui {
|
||||
tile.View.X = i == 0 ? bounds.X : Pos.Right (splitterLines [i - 1]);
|
||||
tile.View.Y = bounds.Y;
|
||||
tile.View.Height = bounds.Height;
|
||||
tile.View.Width = GetTileWidthOrHeight(i, bounds.Width);
|
||||
tile.View.Width = GetTileWidthOrHeight(i, Bounds.Width);
|
||||
} else {
|
||||
tile.View.X = bounds.X;
|
||||
tile.View.Y = i == 0 ? 0 : Pos.Bottom (splitterLines [i - 1]);
|
||||
tile.View.Width = bounds.Width;
|
||||
tile.View.Height = GetTileWidthOrHeight(i, bounds.Height);
|
||||
tile.View.Height = GetTileWidthOrHeight(i, Bounds.Height);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -453,7 +453,13 @@ namespace Terminal.Gui {
|
||||
var nextSplitter = splitterDistances [i].Anchor (space);
|
||||
var lastSplitter = i >= 1 ? splitterDistances [i-1].Anchor (space) : 0;
|
||||
|
||||
return nextSplitter - lastSplitter;
|
||||
var distance = nextSplitter - lastSplitter;
|
||||
|
||||
if(i>0) {
|
||||
return distance - 1;
|
||||
}
|
||||
|
||||
return distance;
|
||||
}
|
||||
|
||||
private void RespectMinimumTileSizes ()
|
||||
|
||||
Reference in New Issue
Block a user