Commit e3f77704 authored by ondrej's avatar ondrej
Browse files

lcl: grids: disable VisualChange and UpdateSizes if AutoSize is disabled....

lcl: grids: disable VisualChange and UpdateSizes if AutoSize is disabled. Solves part of issue #31715

git-svn-id: trunk@54812 -
parent 9adb1436
......@@ -3159,7 +3159,7 @@ end;
procedure TCustomGrid.VisualChange;
begin
if (FUpdateCount<>0) or (not HandleAllocated) then
if (FUpdateCount<>0) or (not HandleAllocated) or AutoSizeDelayed then
exit;
{$ifdef DbgVisualChange}
......@@ -4966,6 +4966,10 @@ end;
procedure TCustomGrid.UpdateSizes;
begin
Include(FGridFlags, gfVisualChange);
if (FUpdateCount<>0) or (not HandleAllocated) or AutoSizeDelayed then
exit;
UpdateCachedSizes;
CacheVisibleGrid;
CalcScrollbarsRange;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment