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.

This commit is contained in:
Ansgar Becker
2016-02-07 11:44:36 +00:00
parent 187a56abe6
commit 7f587da165

View File

@@ -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;