Forum > Editor

Lazarus IDE freaks out

(1/1)

CM630:
When I open the attached project and press F12 to open the form editor the IDE freaks out and it starts to increase the width of the form by itself until it gets out of range.
This happens on Lazarus 2,2,0; RC1 32 bit; FPC3,2,2; rev 65419 on W10 64bit.
Maybe I should report this as a bug?

Note: The part of the code that I have attached cannot be compiled, but it shows the issue that I have come across.

Martin_fr:
In general, it is possible to create recursive "anchor"s (AnchorSide) or AutoSize.

And, those can lead to the described behaviour.
They should be detected, and raise an exception (before the range error occurs).

I have not tested your example, but according to what you say, IMHO this should be reported as a bug.


I am not sure where your example has a circle....
But, I find it strange (and suspicious) that the Form is alBottom. IMHO that makes no sense for a form (I guess you may create it with another form as parent (using it like a TFrame?)

alBottom may affect how the form calculates its "preferred widths". And with that AnchorSides and AutoSize of child controls come into play...
But no idea how all that affects your case....

CM630:
I have just changed Align from alBottom to aiNone and now the issue does not occur (it was not set to aiBottom on purpose, btw).
I will create a bug report then.

Edit: Reported as https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39531.

JuhaManninen:

--- Quote from: CM630 on January 04, 2022, 02:43:04 pm ---I have just changed Align from alBottom to aiNone and now the issue does not occur (it was not set to aiBottom on purpose, btw).

--- End quote ---
In what situation should the main form's Align be alBottom? What is it supposed to do?

trev:
@JuhaManninen: The OP noted he had not done it on purpose - it was an accidental thing.

Navigation

[0] Message Index

Go to full version