I know what AI is, thanks..
Any answer on why they are leaving the layout?
Other information that could be usefull:
What kind of behaviour do they have?
What kind of events are attached?
How big is the layout?
Why shouldn't they leave?
Would creating a new one outside the viewport be enough if they leave the layout?
If not, why not?
Etcetera..
I mean, you could have them not leaving the layout if you prevent them from moving, but I guess that's not the answer you are looking for..