fixed layout updating when child's bounds has been changed
added method to reset alignment