FIX: In column auto size

This commit is contained in:
Alexander Koblov 2008-07-28 12:41:32 +00:00
commit fe1d75950b

View file

@ -1289,7 +1289,12 @@ end;
procedure TDrawGridEx.Resize;
begin
inherited Resize;
UpdateColWidths;
if Visible and not (csLoading in ComponentState) then
begin
Include(ComponentState, csLoading);
UpdateColWidths;
Exclude(ComponentState, csLoading);
end;
end;
procedure TDrawGridEx.HeaderSized(IsColumn: Boolean; Index: Integer);