Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #17001
| From | "J.R." <groups_jr-1@yahoo.com.br> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Confused about window size |
| Date | 2012-10-31 22:09 -0300 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <k6si4q$nt3$1@speranza.aioe.org> (permalink) |
| References | <-LOdnYNMXsgG5hLNnZ2dnUVZ_g-dnZ2d@westnet.com.au> <XnsA0FC5B5916FA2eejj99@194.109.133.133> <NsSdnXbM-rUcPBLNnZ2dnUVZ_oidnZ2d@westnet.com.au> <XnsA0FCAC96CD96Beejj99@194.109.133.133> <xqadnUaGppla_w3NnZ2dnUVZ_uWdnZ2d@westnet.com.au> |
On 30-10-2012 20:29, Andrew Poulos wrote: <snip> >> ======================================= >> <!DOCTYPE HTML> >> >> <script type='text/javascript'> >> alert([window.document.documentElement.clientWidth, >> window.document.documentElement.clientHeight]) >> </script> >> ======================================= In IE, the HTML element (document.documentElement) is used for the viewport in standards mode (also known as "strict mode") and the body (document.body) is used in "quirks mode". document.documentElement.clientHeight (in strict mode) may output a slightly different value from document.body.clientHeight (in quirks mode). > Sorry,my bad. I should've made it clearer that I'm using appMobi to > create an android app from HTML5 pages. While I can get a HTML5 page to > display the viewport size correctly it fails as an app. > > I was hoping it was just some misunderstanding on my part but now it > seems to be a flaw in appMobi. Although you are supplying the HTML 5 Doctype (<!DOCTYPE HTML>), I can't see if the page is rendered in strict mode. Maybe this appMobi is doing something wrong. See: <http://www.quirksmode.org/mobile/viewports.html> <http://www.cinsoft.net/viewport.asp> -- João Rodrigues (J.R.)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Confused about window size Andrew Poulos <ap_prog@hotmail.com> - 2012-10-30 18:02 +1100
Re: Confused about window size "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-10-30 08:58 +0100
Re: Confused about window size Andrew Poulos <ap_prog@hotmail.com> - 2012-10-30 20:44 +1100
Re: Confused about window size "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-10-30 16:57 +0100
Re: Confused about window size Andrew Poulos <ap_prog@hotmail.com> - 2012-10-31 10:29 +1100
Re: Confused about window size "J.R." <groups_jr-1@yahoo.com.br> - 2012-10-31 22:09 -0300
Re: Confused about window size "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-11-01 18:14 +0100
Re: Confused about window size David Mark <dmark.cinsoft@gmail.com> - 2012-10-30 01:39 -0700
csiph-web