Closed Bug 1001264 (Glow:FFAndroid) Opened 10 years ago Closed 10 years ago

FF Android Stats Page - Jumps Down The Page, Does Not Display Graphs

Categories

(Websites :: glow.mozilla.org, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bensternthal, Assigned: aalmossawi)

References

Details

Attachments

(3 files)

On FF Android Only (chrome works great) I noticed 2 issues.

1. After you click a button the stats page can sometimes load with the dropdown at the top of the screen. So the user never sees the number. This does not happen consistently

2. The data graphs do not load. However if I rotate the screen they appear. See screenshot of unloaded state.
Adding additional info from bug 1001185

The graphs also do not load on iPhone. Same behavior, rotate the screen to landscape and they appear.
Assigning to Ali - looks like the width on the SVG is getting set to 0 in the mobile layout.
Assignee: steven → aalmossawi
Commits pushed to master at https://github.com/mozilla/mrburns

https://github.com/mozilla/mrburns/commit/11e3c552913949a89da332d92c044de72f6f8005
Fix bug #1001264 - stats charts on mobile

Stats charts not appearing on mobile

https://github.com/mozilla/mrburns/commit/824bb41402ebd4594a1c92fc802fc424784005ed
Merge pull request #131 from almossawi/master

Fix bug #1001264 - stats charts not appearing on mobile
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Changes made in PR 131.

Could you kindly confirm that the charts now appear on mobile. I was only able to test on an iPhone and by loading the page in mobile view on desktop.
Verified on FF Android. Working now.
Note the scrolling issue.. it occurs if you scroll down on the list of buttons on the first page.
I'm unable to reproduce it. Could you attach a screenshot, please.
Hard to send screenshot of this one.

If i scroll down on the top page and select say the last button.. the stats page loads with the numbers off screen.

Attached is a screenshot of where the second page loads.
Could you please verify.
OK testing on FF android.

1. Page still jumps down.

2. Graphs are not scaled down and are busting out

Note I can replicate both of these in firefox desktop by shrinking my window down. See attachment.
If you shrink the window down to this size and scroll down you should be able to replicate the behavior.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to Ben (:bensternthal) from comment #14)
> If you shrink the window down to this size and scroll down you should be
> able to replicate the behavior.

I'm seeing this too. It "fixes" as soon as the browser is resized at all, so some even is triggered on resize that isn't triggered on load.
It sets the svg's width to its parent's width on page load and resize, but for some reason, the latter is 0 on page load when in mobile view.

What I currently do in local is set its width to the window width when the page is loaded in mobile view, which fixes the issue, but leaves me with a feeling of disappointment and shame...

Planning to look at it tomorrow at around noon.
Ali, I wondered if the issue is that, in the mobile layout, the stats panel is set to display:none; until the .stats-panel-open class is added to the body after the topic is picked.

When the display is set to none, the parent of the SVG element doesn't have a width yet (hence, zero).
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
Aah, that was it. Thanks.

Ben, could you please verify both reported issues.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
tested dev.. verfified fixed
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: