Closed Bug 619019 Opened 14 years ago Closed 14 years ago

Use -moz-device-orientation when needed

Categories

(Firefox for Android Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(fennec2.0b4+)

VERIFIED FIXED
Tracking Status
fennec 2.0b4+ ---

People

(Reporter: mfinkle, Assigned: mfinkle)

Details

Attachments

(1 file)

We added a CSS media query called -moz-device-orientation so we could track orientation based on device screen aspect, instead of the window aspect.
Attached patch patchSplinter Review
This adds some basic support for the new -moz-device-orientation

It also fixes Utils.isPortrait
Assignee: nobody → mark.finkle
Attachment #497519 - Flags: feedback?(mbrubeck)
Attachment #497519 - Flags: feedback?(mbrubeck) → feedback+
Comment on attachment 497519 [details] [diff] [review]
patch

requesting review for this part. we can file a followup bug for setting other parts of the UI based on orientation or width.
Attachment #497519 - Attachment description: wip → patch
Attachment #497519 - Flags: review?
Attachment #497519 - Flags: review? → review?(mbrubeck)
Attachment #497519 - Flags: review?(mbrubeck) → review+
pushed:
http://hg.mozilla.org/mobile-browser/rev/d1ce93590d43
Status: NEW → RESOLVED
tracking-fennec: --- → 2.0b4+
Closed: 14 years ago
Resolution: --- → FIXED
Can someone, please, verify this bug?
Verified : 

FYI, can test under the Device Access category -> Device Orientation:
https://mozillademos.org/demos/dashboard-mobile/demo.html

Mozilla/5.0 (Android; Linux armv71; rv7.0a1) Gecko/20110527 Firefox/7.0a1 Fennec/7.0a1
Device: Thunderbolt
OS: Android 2.2

Mozilla/5.0 (Android; Linux armv71; rv7.0a1) Gecko/20110527 Firefox/7.0a1 Fennec/7.0a1
Device: HTC Flyer
OS: Android 2.3
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: