Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Arno Welzel Newsgroups: comp.infosystems.www.authoring.html,comp.lang.javascript Subject: Re: Sizing on android phone Date: Fri, 13 Jan 2012 14:52:53 +0100 Organization: A noiseless patient Spider Lines: 42 Message-ID: <4F103735.5090205@arnowelzel.de> References: <4F0EEA0D.4090601@arnowelzel.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="dd4uQGf4fHOQcq7/hg1u1Q"; logging-data="25465"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/TK9tYEbLqGp1kFc4z7V0BMI0O6O/YNM=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: Cancel-Lock: sha1:zxGNUc4GQ7vAyszzfKBztVB1YpY= Xref: x330-a1.tempe.blueboxinc.net comp.infosystems.www.authoring.html:1877 comp.lang.javascript:10197 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 >>> >>> 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