mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user