Now that the table tools dialog also has a second tree column "size", it should get autofitted the same way as mainform.dbtree. Fixes issue #1500.

This commit is contained in:
Ansgar Becker
2009-12-01 15:12:28 +00:00
parent 14ff384039
commit ffe782b157

View File

@ -6090,7 +6090,7 @@ begin
end; end;
// Auto resize "Size" column in dbtree when needed // Auto resize "Size" column in dbtree when needed
// See also OnResize // See also OnResize
if (VT = DBtree) and (coVisible in VT.Header.Columns[1].Options) then if coVisible in VT.Header.Columns[1].Options then
VT.Header.AutoFitColumns(False, smaUseColumnOption, 1, 1); VT.Header.AutoFitColumns(False, smaUseColumnOption, 1, 1);
end; end;
else Exit; else Exit;