Forum > LCL

[KNOWN ISSUE] TCustomLabel.OptimalFill - font size not updated on resize.

(1/1)

dsiders:
Using Lazarus 2.3.0 (rev main-2_3-2395-g6ab3629c14) FPC 3.2.2 x86_64-win64-win32/win64...

I'm not sure this if this is really an error or just a bad expectation...

When OptimalFill is enabled, the font size is not recalculated when the anchored control is resized. It does get recalculated if one of the properties is changed that call UpdateSize... including OptimalFill.

The attached project demonstrates. Resize the form and notice that the font size does not change. Click on the Toggle OptimalFill button, and it gets recalculated.

If it is an error, I can submit a bug report with the demo code.

TIA...

dsiders:

--- Quote from: dsiders on November 30, 2022, 08:52:07 am ---Using Lazarus 2.3.0 (rev main-2_3-2395-g6ab3629c14) FPC 3.2.2 x86_64-win64-win32/win64...

I'm not sure this if this is really an error or just a bad expectation...

When OptimalFill is enabled, the font size is not recalculated when the anchored control is resized. It does get recalculated if one of the properties is changed that call UpdateSize... including OptimalFill.

The attached project demonstrates. Resize the form and notice that the font size does not change. Click on the Toggle OptimalFill button, and it gets recalculated.

If it is an error, I can submit a bug report with the demo code.

TIA...

--- End quote ---

There are existing bug reports for this.

Navigation

[0] Message Index

Go to full version