Open
Bug 1424913
Opened 8 years ago
Updated 2 years ago
Austin Y'AllHands Sched viewport is clipped in responsive design mode, after clicking "rotate" button
Categories
(Core :: Layout, defect, P3)
Tracking
()
NEW
People
(Reporter: dholbert, Unassigned)
Details
Attachments
(4 files)
STR:
1. Enter Responsive Design Mode (Ctrl+Shift+M)
2. Click device dropdown ("no device selected") and choose "Google Nexus 4"
3. Visit https://austinyallhands2017.sched.com/
4. Click the "rotate viewport" button
(at top right of the virtual-phone-viewport)
5. Click the "rotate viewport" again.
EXPECTED RESULTS:
I should be back to the same portrait-mode view that I was looking at before I did any rotation.
ACTUAL RESULTS:
- After step 4, the menu arbitrarily appears on the left side (even though I didn't open it).
- After step 5 (end of STR), the left 2/3 of the viewport is blank.
In Chrome-on-Desktop Responsive Design Mode, I get EXPECTED RESULTS.
In Firefox 59.0a1 (2017-12-09) (64-bit) on Linux, I get ACTUAL RESULTS.
(Side note: on an actual android device, *in both Chrome and Firefox* I get a *different* layout issue upon rotating the phone -- specifically, the viewport seems to be in the wrong orientation for my actual physical orientation. It's tall-and-skinny when I rotate my phone to landscape mode (and the right half of the screen is blank), and it's wide-and-short when I hold my phone in portrait mode (and the lower half of the screen is blank). That's likely a sched bug, since it affects both Firefox and Chrome on Android. But the desktop issue that I'm reporting here seems more possible to be a Firefox bug, since it's specific to Firefox-on-Desktop. Though it might involve some gross thing that Sched is doing...)
| Reporter | ||
Updated•8 years ago
|
Summary: Austin Y'AllHands Sched viewport is → Austin Y'AllHands Sched viewport is clipped in responsive design mode, after clicking "rotate" button
| Reporter | ||
Comment 1•8 years ago
|
||
| Reporter | ||
Updated•8 years ago
|
Attachment #8936444 -
Attachment description: screenshot: initial rendering → screenshot: initial rendering (good)
| Reporter | ||
Comment 2•8 years ago
|
||
| Reporter | ||
Comment 3•8 years ago
|
||
| Reporter | ||
Comment 4•8 years ago
|
||
(The second screenshot rendering *might* be expected -- it might be sched trying to take advantage of the newly-wider real estate. Not sure.)
Also, I can trigger the same issue by simply resizing the RDM viewport to be wide & then skinny again.
| Reporter | ||
Updated•8 years ago
|
Attachment #8936449 -
Attachment description: screenshot: after rotating 2x (left side of screen is now blank) → screenshot: after rotating 2x (left side of screen is now blank, demonstrating the bug)
| Reporter | ||
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
When widening the viewport in RDM, at some point (it seems to depend on the width but also aspect ratio) there is some JS code that adds the is_tablet class to the root <html> element. This is what triggers the opening of the menu on the left. This appears to be intentional on the part of the page author. The menu element is actually there the whole time but initially is positioned offscreen to the left by use of "position:absolute; left:-260px" (it is 260px wide). The is_tablet class adds a new style rule which sets left:0 and makes the menu visible. At the same time that is_tablet appears, the things inside the #cutout div (#header and #container) get a left:260px in their element.style so that they move over to make room for the menu.
When shrinking the width, all this is supposed to happen in reverse, but it seems that only half of it does - the is_tablet class is removed, but the #header and #container elements retain their left:260px. That results in the blank space on the left.
I think this is just a bug in their design, but the JS [1] is minified and Firefox doesn't seem to be able to pretty-print it so it's hard to confirm.
[1] https://cdn.schd.ws/mobile/main-2017-10-19.js
Updated•8 years ago
|
Priority: -- → P1
Updated•8 years ago
|
Priority: P1 → P3
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•