File open dialog file list adjustments after resize

This commit is contained in:
Margers 2025-01-09 21:40:45 +00:00 committed by Michael Van Canneyt
parent aebc7458e1
commit c464f4d58e

View File

@ -7674,6 +7674,8 @@ begin
if Desktop^.Size.X > 80 then
GrowTo(Min(Desktop^.Size.X-(80-Size.X),102),Size.Y);
FileList^.NumCols:= Max((FileList^.Size.X-(FileList^.Size.X div 14)) div 14,2);
{ Adjust scrollbar step and page step }
FileList^.SetRange(FileList^.Range); {set again for scrollbar min max values}
{set focus on the new input line}
DInput^.Focus;
end;