allow long tablestreams to become multiline

useful for pokemon teams, which can get very wide
This commit is contained in:
Haven1433 2022-09-01 08:01:56 -05:00
parent c1651807d6
commit bdcd527858

View File

@ -2040,10 +2040,10 @@ namespace HavenSoft.HexManiac.Core.ViewModels {
child.SelectionEnd = endPoint;
} else if (run is ITableRun tableRun) {
child.Goto.Execute(tableRun.Start);
child.Width = tableRun.Length;
child.SelectionStart = child.ConvertAddressToViewPoint(startAddress);
child.Width = tableRun.Length <= 32 ? tableRun.Length : tableRun.ElementLength;
var endPoint = child.ConvertAddressToViewPoint(endAddress);
child.Height = endPoint.Y - child.SelectionStart.Y + 1;
child.Height = endPoint.Y + 1;
child.SelectionStart = child.ConvertAddressToViewPoint(startAddress);
child.SelectionEnd = endPoint;
} else {
child.Goto.Execute(startAddress.ToString("X2"));