<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div>Good night list,<br><br>I notice a strange behavior on TLabel.OptimalFill...<br><br>Sometimes
 it doesn't work... For instance.. I'm changing a TLabel.Text during a 
TTabSheet.Show event... and in this case, TLabel.OptimalFill doesn´t 
work... Even if I do a direct call TLabel.AdjustFontForOptimalFill it 
doesn´t recalculate the font size...<br><br>Following with the Debug, I 
notice that AutoSizeDelayed is set to True for this situation, and this 
make the function TCustomLabel.CalcFittingFontHeight exit prematurely...<br><br>I attached a small project to demonstrate the issue...<br><br>Should I open a Issue on BugTracker ?<br><br>Thanks for the great effort to keep Lazarus and FPC increasingly better...<br><br>Best Regards</div><div> </div><div>[]s Daniel<br><br>Conheça o <a rel="nofollow" target="_blank" href="http://acbr.sourceforge.net/">Projeto ACBr - Automaçao Comercial Brasil</a><br><a rel="nofollow" target="_blank" href="http://www.djsystem.com.br/"><span style="font-weight:bold;">DJSystem</span> a Loja Patrocinadora do ACBr</a><br></div></div></body></html>