Wednesday, June 1, 2011

Fitting website on Apple IPad

Hi,

Recently, we had to release an IPad version of one of our websites, an existing website needed to be converted to display on an IPad. I had a major issue when some one rendered the site from landscape to portrait and from portrait to landscape on an ipad, the site does not get auto fitted.

To overcome this issue, i had to set view port in meta tag on all my jsp pages.

I did something like this ::


<meta name="viewport" content="width=800" />


Now it renders site correctly on an ipad.. :)

Cheers,

Ujjwal Soni



No comments: