It is working here (Laz trunk/FC 3.2.0, Win 10): OptimalFill := true and AutoSize := false do the trick.
What are your Lazarus/FPC versions? OS? There was a fix related to Optimalfill in May 2017, about Laz 1.6.x time. If you have a Lazarus of that period you should definitely upgrade.