Fix iPad dimensions bug

Can this conditional expression be simplified? Perhaps in to multiple lines. It's a bit hard to comprehend.