Closed
Bug 704738
Opened 13 years ago
Closed 13 years ago
Page/content does not resize on device rotation/orientation change
Categories
(Firefox for Android Graveyard :: General, defect, P1)
Tracking
(firefox11 fixed, fennec11+)
VERIFIED
FIXED
People
(Reporter: lmandel, Assigned: kats)
References
Details
Attachments
(2 files, 2 obsolete files)
43.18 KB,
image/png
|
Details | |
4.30 KB,
patch
|
cwiiis
:
review+
|
Details | Diff | Splinter Review |
Open a web page in landscape mode and scroll all the way to the bottom. (I was on http://www.mikealrogers.com/posts/apache-considered-harmful.html when I found this bug.) Change to portrait mode. The page does not grab the bottom but instead shows a grey area on the bottom half of the screen.
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → kgupta
Assignee | ||
Updated•13 years ago
|
Summary: When switching from landscape to portrait page doesn't grab the bottom of the screen → Page/content does not resize on device rotation/orientation change
Assignee | ||
Comment 3•13 years ago
|
||
This fixes the snapping-to-edge on rotation. For making the page resize so we don't get grey areas, bug 701594 will need to be fixed first.
Attachment #579113 -
Flags: review?(chrislord.net)
Comment 4•13 years ago
|
||
Comment on attachment 579113 [details] [diff] [review]
Snap edge on rotate
Review of attachment 579113 [details] [diff] [review]:
-----------------------------------------------------------------
Looks fine to me.
Attachment #579113 -
Flags: review?(chrislord.net) → review+
Assignee | ||
Comment 5•13 years ago
|
||
https://hg.mozilla.org/projects/birch/rev/bea2748292cc
Leaving this bug open until bug 701594 is resolved.
Assignee | ||
Comment 6•13 years ago
|
||
Attachment #579146 -
Flags: review?(wjohnston)
Attachment #579146 -
Flags: feedback?(chrislord.net)
Assignee | ||
Comment 7•13 years ago
|
||
Getting rid of the dependency on bug 701594 because https://hg.mozilla.org/projects/birch/rev/f8c174b95c40 (bug 697701) also provides the necessary zoom code. Use that to re-zoom the page on rotate if needed. This also handles the case where the device is rotated or the page calls scrollTo while in the middle of an animated zoom.
No longer depends on: 701594
Comment 8•13 years ago
|
||
Comment on attachment 579146 [details] [diff] [review]
Re-zoom on rotate/viewport change
Review of attachment 579146 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good, feedback+ from me.
::: mobile/android/base/ui/PanZoomController.java
@@ +185,5 @@
> default: return false;
> }
> }
>
> public void geometryChanged(boolean aAbortFling) {
Maybe this should be renamed aAbortAnimation now?
Attachment #579146 -
Flags: feedback?(chrislord.net) → feedback+
Comment 9•13 years ago
|
||
Comment on attachment 579146 [details] [diff] [review]
Re-zoom on rotate/viewport change
Review of attachment 579146 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/base/ui/PanZoomController.java
@@ +205,5 @@
> mX.velocity = mY.velocity = 0.0f;
> mState = PanZoomState.NOTHING;
> // fall through
> case NOTHING:
> + tryZoomToFitPage();
This will zoom us out right? I guess that's better than showing gray areas.
Attachment #579146 -
Flags: review?(wjohnston) → review+
Assignee | ||
Comment 10•13 years ago
|
||
Renamed aAbortFling to abortAnimation. And yes, it zooms us out only if there would be gray areas otherwise.
https://hg.mozilla.org/projects/birch/rev/884b705c99fb
Assignee | ||
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 12•13 years ago
|
||
Backed out in https://hg.mozilla.org/projects/birch/rev/62a0c96c6ef7 since it broke some behaviour relating to opening new tabs.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•13 years ago
|
Priority: -- → P1
Assignee | ||
Comment 13•13 years ago
|
||
Technically this works now because of the patches from bug 701594 but it could use a little tweaking. I'll put together a patch for it.
Comment 14•13 years ago
|
||
Well, one issue still remaining is that if you open a page in landscape, and then rotate to portrait triggering a zoom, rotating back does not zoom back.
This might be desired behavior, but seem counter intuitive to me.
Assignee | ||
Comment 15•13 years ago
|
||
(In reply to Bill Gianopoulos from comment #14)
> Well, one issue still remaining is that if you open a page in landscape, and
> then rotate to portrait triggering a zoom, rotating back does not zoom back.
>
> This might be desired behavior, but seem counter intuitive to me.
I agree that this is annoying. It's being tracked in bug 707956.
Assignee | ||
Updated•13 years ago
|
Attachment #579113 -
Attachment is obsolete: true
Assignee | ||
Updated•13 years ago
|
Attachment #579146 -
Attachment is obsolete: true
Assignee | ||
Comment 16•13 years ago
|
||
Just renaming variables and ensuring rotations interact well with double-tap.
Attachment #580909 -
Flags: review?(chrislord.net)
Comment 17•13 years ago
|
||
Comment on attachment 580909 [details] [diff] [review]
Patch
Review of attachment 580909 [details] [diff] [review]:
-----------------------------------------------------------------
Looks fine to me.
Attachment #580909 -
Flags: review?(chrislord.net) → review+
Assignee | ||
Comment 18•13 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Comment 19•13 years ago
|
||
HTC Nexus One (Android 2.3.6)
20111213061518
http://hg.mozilla.org/mozilla-central/rev/e79b3396889c
Status: RESOLVED → VERIFIED
Updated•13 years ago
|
tracking-fennec: --- → 11+
Updated•13 years ago
|
status-firefox11:
--- → fixed
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•