Open eugeneloza opened 6 years ago
Hmm... practically any SetSize
should alert Parent
recoursively to rearrange children?
kinda
procedure SetSize
Next := ...
SizeHasBeenChanged
procedure SizeHasBeenChanged
if Self is DAbstractSorter then ArrangeChildren;
Parent.SizeHasBeenChanged
Doesn't look nice. Arrange children will be called multiple times recoursively, maybe ending in an infinite loop.
Yep, of course it results in EStackOverflow
(child changes size, alerts Arranger, Arranger arranges child and changes its size and repeat :))
This kind of procedures should alert
parent
s to runArrangeChildren
. Not as critical bug as the previous time and theoretically solvable this time, but still gives some headache.