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


Groups > comp.lang.javascript > #29031

Re: The Screen interface

Path csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Aleksandro <aleksandro@gmx.com>
Newsgroups comp.lang.javascript
Subject Re: The Screen interface
Date Wed, 23 Dec 2015 15:41:45 -0300
Organization A noiseless patient Spider
Lines 37
Message-ID <n5epof$op1$2@dont-email.me> (permalink)
References <Screen-20151223190916@ram.dialup.fu-berlin.de>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 8bit
Injection-Date Wed, 23 Dec 2015 18:39:11 -0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="3bb0fced1de70649df863026b02cdb5f"; logging-data="25377"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18G6yAsZk663NeTl+H5KmWLcH5FxzjPMZg="
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0
In-Reply-To <Screen-20151223190916@ram.dialup.fu-berlin.de>
Cancel-Lock sha1:WM7V6u4qNLFiW4B0yAggaLef6dM=
Xref csiph.com comp.lang.javascript:29031

Show key headers only | View raw


On 23/12/15 15:17, Stefan Ram wrote:
>   The page
> 
> developer.mozilla.org/en-US/docs/Web/API/Screen
> 
>   contains »
> 
> Screen.height
> Returns the height of the screen in pixels.
> 
> Screen.width
> Returns the width of the screen.
> 
>   «. So /that's/ the difference between »height« and »width«:
>   »height« is measured in pixels, while »width« is measured
>   in an unspecified unit! ;-)
> 
>   I often find the MDN to be quite mediocre. For example, in
>   the case above, I also do not deem properties to »return«
>   values. /Functions/ return values, properties /have/ them.
> 
>   Also, it is not necessary to always repeat the name of the
>   interface and to use a verb when a value is being described.
> 
>   So, I'd write this as (assuming that »width« /is/ in pixels): »
> 
> The interface Screen
> 
> height
> the height of the screen in pixels
> 
> width
> the width of the screen in pixels
> 
>   «.

¿How about contributing such correction to the documentation?

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


Thread

Re: The Screen interface Aleksandro <aleksandro@gmx.com> - 2015-12-23 15:41 -0300
  Re: The Screen interface Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-25 17:53 +0100

csiph-web