Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #10095
| Message-ID | <1522523.DBZGYLRabQ@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2012-01-09 23:45 +0100 |
| Subject | Re: Sizing on android phone |
| Newsgroups | comp.lang.javascript |
| References | (2 earlier) <gPqdneL6M_JaR5fSnZ2dnUVZ_jGdnZ2d@westnet.com.au> <20727073.rOyAWzDM7h@PointedEars.de> <E-6dnYf-9v0e2ZbSnZ2dnUVZ_qmdnZ2d@westnet.com.au> <1470542.MF3qFTnzmZ@PointedEars.de> <TfudnSAjib9SwZbSnZ2dnUVZ_j-dnZ2d@westnet.com.au> |
| Followup-To | comp.lang.javascript |
Followups directed to: comp.lang.javascript
Andrew Poulos wrote: > On 10/01/2012 8:15 AM, Thomas 'PointedEars' Lahn wrote: >> Andrew Poulos wrote: >>> Thomas 'PointedEars' Lahn wrote: >>>> Obviously, checking the *document*, the *document element* or the >>>> *document body* will _not_ yield the *viewport* dimensions. >>> With mobile devices, at least the ones I have my hands on, the browsers >>> only open full screen. >> You need to get your hands on more mobile devices or more browsers or >> both. >> >> Regardless, why is it not *obvious* to you that neither of the document >> size, the document element size or the document body size can be >> generally the viewport size? Do you know what a viewport is? > When you put it like that then it doesn't seem likely that I know. > > I based my code on code from the FAQ. Perhaps I misunderstood it. Hmmm. Probably not. That FAQ entry (10.3) *looks* well-researched (I do not have time to review it ATM). Probably my mistake, then. You should try debugging your function so that you can see what branch is taken by the mobile browser (which one?). You could try using window.innerWidth and window.innerHeight although the FAQ entry does not recommend them, and see what values you get. However, there *are* mobile browsers that do not show the document in full screen when it has been loaded. One of those is Dolphin Browser HD 7.2.1 for Android on my HTC Sensation (4G), which has tabs that only disappear if you scroll down. It would be best if you could post the URL or the source code of a reduced testcase. PointedEars -- Anyone who slaps a 'this page is best viewed with Browser X' label on a Web page appears to be yearning for the bad old days, before the Web, when you had very little chance of reading a document written on another computer, another word processor, or another network. -- Tim Berners-Lee
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Sizing on android phone Andrew Poulos <ap_prog@hotmail.com> - 2012-01-09 14:03 +1100
Re: Sizing on android phone "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-08 21:23 -0800
Re: Sizing on android phone Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-01-09 12:15 +0100
Re: Sizing on android phone Andrew Poulos <ap_prog@hotmail.com> - 2012-01-09 23:17 +1100
Re: Sizing on android phone Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-01-09 14:02 +0100
Re: Sizing on android phone "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-09 11:36 -0800
Re: Sizing on android phone Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-01-09 22:10 +0100
Re: Sizing on android phone Andrew Poulos <ap_prog@hotmail.com> - 2012-01-10 06:48 +1100
Re: Sizing on android phone Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-01-09 22:15 +0100
Re: Sizing on android phone Andrew Poulos <ap_prog@hotmail.com> - 2012-01-10 08:31 +1100
Re: Sizing on android phone Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-01-09 23:45 +0100
Re: Sizing on android phone "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-01-09 14:23 +0000
Re: Sizing on android phone "J.R." <groups_jr-1@yahoo.com.br> - 2012-01-12 04:29 -0200
Re: Sizing on android phone "J.R." <groups_jr-1@yahoo.com.br> - 2012-01-12 06:13 -0200
Re: Sizing on android phone Arno Welzel <usenet@arnowelzel.de> - 2012-01-12 15:11 +0100
Re: Sizing on android phone Andrew Poulos <ap_prog@hotmail.com> - 2012-01-13 11:30 +1100
Re: Sizing on android phone Arno Welzel <usenet@arnowelzel.de> - 2012-01-13 14:52 +0100
Re: Sizing on android phone Dan <dan@tobias.name> - 2012-01-12 10:11 -0800
Re: Sizing on android phone Andrew Poulos <ap_prog@hotmail.com> - 2012-01-13 11:41 +1100
csiph-web