Hi.

This mail list is to talk about the Cordova project development, not for
support while using it.

There are plenty of ways of getting the screen size, javascript provides
the screen object, window object also provides a innerHeight and innerWidth
properties, also document.documentElement object has clientHeight and
clientWidth.

But those values might not match or can be different per platform or per
version, so it's better if you check them all and see if any of them
returns what you expect.

If not, you can search for a screen plugin, and if there is none, then you
can create one following this guide
https://cordova.apache.org/docs/en/latest/guide/hybrid/plugins/index.html


2017-06-19 10:45 GMT+02:00 antonis katsikadamos <
antonis.katsikada...@nmc2.eu>:

> Hello.
>
>
>
> Is there a plug-in or a way to get the device’s screen width and height?
>
>
>
> Thank you in advance for your response,
>
>
>
> *Antonis Katsikadamos | ** Senior software engineer*
>
> [image: unnamed]
>
>
> *---------------------------------------------------------------------------------------------------*
>
> *NEW MEDIA CONCEPT* *|* *39, 17th Noemvriou 1973 Str. – Cholargos **|** GR
> 155 62 **|** Athens **|* *Greece **|*
>
> *T: +30 215 510 68 28 **|** F: +30 215 510 68 27 **|*
>
> *Visit us at**:*
>
> *http://blog.nmc2.eu/ <http://blog.nmc2.eu/>*
>
> *http://www.facebook.com/nmc2.eu <http://www.facebook.com/nmc2.eu>* *|*
>
>
> *---------------------------------------------------------------------------------------------------*
>
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon>
>  Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link>
> <#m_2299075537218911270_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>

Reply via email to