Screen.orientation and or Screen.primaryOrientation depend on the size of the app window

Bug #1542395 reported by Florian Boucault
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Confirmed
High
Michał Sawicz
qtmir (Ubuntu)
Confirmed
High
Unassigned
qtubuntu (Ubuntu)
Confirmed
High
Unassigned

Bug Description

When the user resizes an app window the value returned by Screen.angleBetween(Screen.primaryOrientation, Screen.orientation) changes depending on the aspect ratio of the window. If the window has a landscape aspect ratio, one value is returned, otherwise another one is returned.

Screen orientation and app window size should be independent.

Revision history for this message
Florian Boucault (fboucault) wrote :
Gerry Boland (gerboland)
Changed in qtmir (Ubuntu):
status: New → Confirmed
Changed in qtubuntu (Ubuntu):
status: New → Confirmed
Changed in qtubuntu:
status: New → Confirmed
Changed in qtmir:
status: New → Confirmed
Bill Filler (bfiller)
Changed in canonical-devices-system-image:
milestone: none → ww08-2016
assignee: nobody → Kevin Gunn (kgunn)
importance: Undecided → High
Changed in qtmir:
importance: Undecided → High
Changed in qtubuntu:
importance: Undecided → High
Changed in qtmir (Ubuntu):
importance: Undecided → High
Changed in qtubuntu (Ubuntu):
importance: Undecided → High
Changed in canonical-devices-system-image:
status: New → Confirmed
Michał Sawicz (saviq)
Changed in canonical-devices-system-image:
assignee: Kevin Gunn (kgunn) → Michał Sawicz (saviq)
Revision history for this message
Josh Arenson (josharenson) wrote :

@Florian I wrote a simple test app (link below) and I am unable to reproduce this issue. Do you have any more information? I'm using a Nexus 7 with r379 and a bluetooth mouse. The output of the below app is always 0 regardless of window size.

http://pastebin.ubuntu.com/15281309/

Michał Sawicz (saviq)
Changed in canonical-devices-system-image:
status: Confirmed → Incomplete
Michał Sawicz (saviq)
Changed in canonical-devices-system-image:
milestone: ww08-2016 → none
Revision history for this message
Florian Boucault (fboucault) wrote :

@Josh: the issue is a little bit trickier it seems. I modified your program to show it: http://pastebin.ubuntu.com/15340361/

The value is only wrong for a very short period of time it seems. Somehow it returns to the expected value quickly after (without notifying of the change).

Changed in canonical-devices-system-image:
status: Incomplete → Confirmed
Michał Sawicz (saviq)
Changed in canonical-devices-system-image:
milestone: none → ww08-2016
Michał Sawicz (saviq)
Changed in canonical-devices-system-image:
milestone: ww08-2016 → 11
Michał Sawicz (saviq)
Changed in canonical-devices-system-image:
milestone: 11 → 12
Michał Sawicz (saviq)
Changed in canonical-devices-system-image:
milestone: 12 → backlog
Michał Sawicz (saviq)
no longer affects: qtubuntu
Michał Sawicz (saviq)
no longer affects: qtmir
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.