keepWithinParent

fun Actor.keepWithinParent()

Checks this actor's position and size and makes sure that it is kept within its parent actor bounds (or Stage).