Mostly things that interest me

Webview orientation with Phonegap

Webview orientation with Phonegap

I was having this really weird problem in PhoneGap where when the orientation would change the webview would not resize to fit the whole screen.  Turns out that the meta viewport tag was causing the problem.  My viewport setting was this: 1 <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>Read more about Webview orientation with Phonegap[…]

Get viewport size width and height with javascript – Javascript – Blog / Andy Langtons Website

Get viewport size width and height with javascript – Javascript – Blog / Andy Langtons Website

Get viewport size width and height with javascript – Javascript – Blog / Andy Langtons Website. This is a neat little snippet of JavaScript code to get the size of your viewport on a browser.  I’m doing some work with progressive HTML rendering and viewport height is pretty important there.  This seems to  work.  WillRead more about Get viewport size width and height with javascript – Javascript – Blog / Andy Langtons Website[…]