Use the rect size instead of screen size
Use the rect size instead of screen size