Hiya lihis! Good to see you again!
Umm… I think we have a bug… involving controls losing their .parent, at times.
Is that working any better?
Notice lines 69/70. I have to FORCE the controls to have parents… periodically. Why? Cuzzzzzzz…
If the control has no parent…
thisControl.parent._reOrderControl(thisControl); …never happens.
And if you nop-out lines 69/70, you can see at-console… that the children (controls) occasionally lose their parents (usually caused by parents walking too fast).
Children should always stay with their parents… forever… to save on rent.
Let’s ping-up Admiral @Deltakosh to have a little look at this… maybe tell us what we are screwing-up.
Comments from others… also welcome, of course, including info about disposing controls. The intermittent loss of control.parent… COULD be affecting disposal, too. (likely so, because a disposed child cannot find WHICH parent container to remove itself-from).