Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: HTML5 availablesize  (Read 13425 times)
Benjamin G.
Posts: 130


« on: October 09, 2014, 03:43:47 pm »

Hi,

Can you help us to find how genero define the available size (screen resolution) when running an html5 application.
Second question, can we manually force the available size ?
The situation is we are trying to run an application on a android mobile device (Intermec CN51) with Chrome and the size of the main form is not correctly expanded with the size of the physical screen ...

Thanks
Reuben B.
Four Js
Posts: 1116


« Reply #1 on: October 12, 2014, 11:38:45 pm »

Quote
Second question, can we manually force the available size ?

In Chrome, Developer Tools can be used to force size via the Emulation options.  You can either emulate various devices, if your device is not on the list, manually enter width/height.

To determine actual size that is being used by your device, you can use the Try-it-yourself options of the w3schools screen object documentation http://www.w3schools.com/jsref/obj_screen.asp.  Note difference between width and availWidth, and similarly height and availHeight.  Is it 480x800?

So from what you describe, first thing I'd do is run the various try-it-yourself options from the w3schools link to determine size of device, and then in your PC, enter those numbers into Chrome Emulation options and see if result is the same.  Try it with both your form and the main gwc-demo application.

Reuben

PS

Have you tried generomobile on such a device?

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines