Closed Bug 853831 Opened 11 years ago Closed 11 years ago

Reader mode toolbar doesn't appear at the top of the page

Categories

(Firefox for Android Graveyard :: Reader View, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Firefox 22

People

(Reporter: pretzer, Assigned: cwiiis)

References

Details

Attachments

(1 file)

The reader mode toolbar cannot be invoked when the page is scrolled to the top. After scrolling down a bit the toolbar can be easily invoked by tapping somewhere on the page.
This also means that toolbar doesn't appear automatically when switching into reader mode, because - obviously - the page is scrolled to the top after page load. :-)

Switching 'browser.chrome.dynamictoolbar' to false fixes the problem and restores the old behavior, so this is likely a regression from bug 716403.
Ah, this will be because it's fixed to the bottom of the page - I think I had this fixed in an earlier build and lost track, reasonably easy fix, will sort it out.

I'll try to get this done today but otherwise this may have to wait a little.
Assignee: nobody → chrislord.net
Status: NEW → ASSIGNED
This fixes the problem in reader mode, and on other sites with similar setups.
Attachment #728223 - Flags: review?(bugmail.mozilla)
Comment on attachment 728223 [details] [diff] [review]
Fix viewport margins during overscroll on the opposite side of the axis

Review of attachment 728223 [details] [diff] [review]:
-----------------------------------------------------------------

::: mobile/android/base/gfx/GeckoLayerClient.java
@@ +59,5 @@
>      private DrawListener mDrawListener;
>  
>      /* Used as a temporary ViewTransform by syncViewportInfo */
>      private final ViewTransform mCurrentViewTransform;
> +    private final RectF mCurrentViewTransformMargins;

Update the comment above mCurrentViewTransform to include this new field as well.
Attachment #728223 - Flags: review?(bugmail.mozilla) → review+
https://hg.mozilla.org/mozilla-central/rev/d91a87b222e4
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 22
Verified fixed on:
-build: Firefox for Android 22.0a1 (2013-03-27)
-device: LG Nexus 4
-OS: Android 4.2.2
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: