Recent

Author Topic: [KNOWN ISSUE] TCustomLabel.OptimalFill - font size not updated on resize.  (Read 414 times)

dsiders

  • Hero Member
  • *****
  • Posts: 1052
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...
« Last Edit: December 02, 2022, 07:23:09 pm by dsiders »
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

dsiders

  • Hero Member
  • *****
  • Posts: 1052
Re: [KNOWN ISSUE] TCustomLabel.OptimalFill - font size not updated on resize.
« Reply #1 on: December 02, 2022, 07:23:43 pm »
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...

There are existing bug reports for this.
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

 

TinyPortal © 2005-2018