viewport html5

Bug #1303050 reported by Daniel Beck
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu HTML5 UI SDK
Fix Released
Undecided
Unassigned

Bug Description

It looks like the ubuntu-html5 app launchers has problems with setting the viewport.

I set the viewport of the game as follows:

<meta id="Viewport" name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">

The result of rendering this is shown in the attachment "rendering error". The whole application is only shown in the higher left quarter.

This is how the application should look like:
http://popey.com/~alan/phablet/device-2014-04-05-141256.png

Note that the game is shown correctly in the oxide browser, the problem only happens in an ubuntu-html5 app.

Here is the url with the application:
http://daniel-beck.org/greenmahjong-small/

Revision history for this message
Daniel Beck (d-danielbeck) wrote :
Revision history for this message
David Barth (dbarth) wrote :

Hi,

I suspect this is an error due to qtwebkit. I tried this on my phone (so the form factor is a bit odd), and with the new oxide runtime, and the viewport was set correctly in landscape or portrait mode.

You need to upgrade to the current trusty version of ubuntu-html5-container, you should get the new renderer.

Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

A few questions:

- which version of UbuntuTouch are you using?

- more precisely which version of qtwebkit on touch?

apt-cache policy libqt5webkit5-qmlwebkitplugin

- also just for the sake of completeness

apt-cache policy ubuntu-html5-container

Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

Just for the sake of clarity I cannot reproduce the issue with this application html contant (in attachment)

Revision history for this message
David Planella (dpm) wrote :

I can reproduce the issue on image 303 from trusty-proposed and having installed the app from the store. Regarding the requested data:

phablet@ubuntu-phablet:~$ apt-cache policy libqt5webkit5-qmlwebkitplugin
libqt5webkit5-qmlwebkitplugin:
  Installed: 5.1.1-1ubuntu8
  Candidate: 5.1.1-1ubuntu8
  Version table:
 *** 5.1.1-1ubuntu8 0
        500 http://ports.ubuntu.com/ubuntu-ports/ trusty/main armhf Packages
        100 /var/lib/dpkg/status
phablet@ubuntu-phablet:~$ apt-cache policy ubuntu-html5-container
ubuntu-html5-container:
  Installed: 0.1.2+14.04.20140404-0ubuntu2
  Candidate: 0.1.2+14.04.20140404-0ubuntu2
  Version table:
 *** 0.1.2+14.04.20140404-0ubuntu2 0
        500 http://ports.ubuntu.com/ubuntu-ports/ trusty/universe armhf Packages
        100 /var/lib/dpkg/status

Revision history for this message
Daniel Holbach (dholbach) wrote :

Is this still an issue?

Changed in ubuntu-html5-theme:
status: New → Incomplete
Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

Marking as fixed since I cannot repro the issue

Changed in ubuntu-html5-theme:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.