Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #10197

Re: Sizing on android phone

From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.infosystems.www.authoring.html, comp.lang.javascript
Subject Re: Sizing on android phone
Date 2012-01-13 14:52 +0100
Organization A noiseless patient Spider
Message-ID <4F103735.5090205@arnowelzel.de> (permalink)
References <N-idnTeX_otixZfSnZ2dnUVZ_rudnZ2d@westnet.com.au> <4F0EEA0D.4090601@arnowelzel.de> <sYqdnWgyO_uz5pLSnZ2dnUVZ_rSdnZ2d@westnet.com.au>

Cross-posted to 2 groups.

Show all headers | View raw


Andrew Poulos, 2012-01-13 01:30:

> On 13/01/2012 1:11 AM, Arno Welzel wrote:
>> Andrew Poulos, 2012-01-09 04:03:
>>
>>> I've a basic page which, onload, returns the viewport size.
>>>
>>> When I run the page on a Samsung GS it returns 450 x 320.
>>>
>>> When I create a small elearning course designed to run at 450 x 320 the
>>> course ends up occupying just the top quarter of the screen. (Because of
>>> the required user interaction I've had to disallow the default actions
>>> for swipes but not gestures.) If the course queries the viewport size it
>>> returns 1125 x 800.
>>>
>>> To get it to "fill" the screen I added
>>>     <meta name="viewport" content="width=device-width">
>>> to the head.
>>>
>>> My questions are
>>> - I don't understand why the viewport size changes between my basic page
>>> and the course on the same device.
>>
>> Please read:
> 
> Thanks for all the responses. I'll try to get some test pages together soon.
> 
> Some people  have misunderstood my question. I have a basic page which 
> says the viewport is one size. When I have a more complex page (without 
> a meta viewport set) it reports a different viewport size.
> 
> It could be because the later has some sized elements in it.

The mobile browsers extend the viewport - but only if neccessary to
render a larger overview of the web site which can be zoomed. This
behaviour can be controlled by the viewport meta header.


-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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