separate enforceContainerWithinScreen logic to a private method

Change-Id: Ifcf8c6a79286269646a845b5be6cfa92b64fcbcc
1 file changed