From 7f587da165ac25fe172d9a06a05dc15c522130ea Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sun, 7 Feb 2016 11:44:36 +0000 Subject: [PATCH] Now that 1023 MiB are formatted as 0.9 GiB, we need to adjust the auto-calculated width of the size column on the database tree. --- source/main.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/main.pas b/source/main.pas index 7e13edd2..1401a8a7 100644 --- a/source/main.pas +++ b/source/main.pas @@ -10834,7 +10834,7 @@ begin // Resize "Size" column in dbtree to hold widest possible byte numbers without cutting text VT := Sender as TVirtualStringTree; if (VT.Header.Columns.Count >= 2) and (coVisible in VT.Header.Columns[1].Options) then - VT.Header.Columns[1].Width := TextWidth(VT.Canvas, FormatByteNumber(SIZE_KB*1023)) + VT.TextMargin*2 + 4; + VT.Header.Columns[1].Width := TextWidth(VT.Canvas, FormatByteNumber(SIZE_KB*999)) + VT.TextMargin*2 + 4; end;