Improve horizontal TAStudio layout a bit

see #3708
This commit is contained in:
Morilli 2024-08-22 01:30:46 +02:00
parent b6a0688be0
commit f07c689c58
2 changed files with 4 additions and 4 deletions

View File

@ -184,9 +184,9 @@ namespace BizHawk.Client.EmuHawk
if (HorizontalOrientation)
{
var columnHeight = GetHColHeight(j);
var textHeight = (int)_renderer.MeasureString(column.Text, Font).Height;
x = CellWidthPadding;
y = yOffset + ((columnHeight - textHeight) / 2);
var textSize = _renderer.MeasureString(column.Text, Font);
x = MaxColumnWidth - CellWidthPadding - (int)textSize.Width;
y = yOffset + ((columnHeight - (int)textSize.Height) / 2);
yOffset += columnHeight;
}
else

View File

@ -347,7 +347,7 @@ namespace BizHawk.Client.EmuHawk
{
TasView.AllColumns.Clear();
TasView.AllColumns.Add(new(name: CursorColumnName, widthUnscaled: 18, type: ColumnType.Boolean, text: string.Empty));
TasView.AllColumns.Add(new(name: FrameColumnName, widthUnscaled: 68, text: "Frame#")
TasView.AllColumns.Add(new(name: FrameColumnName, widthUnscaled: 60, text: "Frame#")
{
Rotatable = true,
});