SimonFlack
18 Jul 2012, 8:56 AM
Hey guys.
I have been doing a bit of mobile work lately and came across a little trick that has really made my life a lot easier.
I am using Safari now (This did not work in chrome)
window.resizeTo(320,556)
Note: I am using a mac where the minimum browser window width seems to be 400px.
This pretty much gives you a perfect iPhone size that you can use to fine tune your design without having to deploy to your phone to test.
Anyway... Just thought I would post it.
37294
I have been doing a bit of mobile work lately and came across a little trick that has really made my life a lot easier.
I am using Safari now (This did not work in chrome)
window.resizeTo(320,556)
Note: I am using a mac where the minimum browser window width seems to be 400px.
This pretty much gives you a perfect iPhone size that you can use to fine tune your design without having to deploy to your phone to test.
Anyway... Just thought I would post it.
37294