Currently the overlay will not render under a screen size of 640px. Using a hard-coded pixel value was necessary when the issue of the overlay rendering poorly on small screens was addressed: #1260800: Kill the overlay for widths below 640 pixels
Since #1260800 was committed, we've seen breakpoint management committed to core #1734642: Move breakpoint module into core as well as support for media query detection in the client #1815602: Introduce a polyfill for matchMedia.
We can now vary the presence, behavior and styling of the overlay based on configurable breakpoints rather than hard-coded viewport width values into JavaScript.
This issue enables #1827330: Fix overlay placement which is broken in the current D8 ToolBar patch.
Dependencies
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | responsive-overlay-1829236-12.patch | 12.68 KB | jessebeach |
| #1 | 1829326_overlay-breakpoints_1.patch | 11.41 KB | jessebeach |
Comments
Comment #1
jessebeach commentedI added breakpoint support to overlay, replacing the hard-coded 640px breakpoint in the JavaScript.
I also added some responsive goodness so that the overlay looks good at smaller screen sizes (even though it won't load at those smaller sizes) for the case that a user reduces their screen width.
Comment #3
attiks commented#1: 1829326_overlay-breakpoints_1.patch queued for re-testing.
Comment #5
eigentor commentedHm this needs some structural rethinking if and how the overlay can work on narrow screens, especially together with the vertical toolbar. It emphasizes even more the efforts to make Seven and all admin forms fit on even very narrow screensizes.
Comment #6
kika commentedFor a reference: #885690: Reverse the overlay implementation (put the parent page in an iframe underneath the administrative page)
Comment #7
shyamala commented+toolbar-followup
Comment #7.0
shyamala commentedUpdated issue summary.
Comment #8
shyamala commentedNeed to freeze on #1847084: Measure/track displacing elements better + provide change events for them (fix overlay + toolbar), before working on this.
Comment #9
johnalbinIssue tags aren't Twitter hashtags. :-)
Comment #10
attiks commented#1: 1829326_overlay-breakpoints_1.patch queued for re-testing.
Comment #11
rteijeiro commentedHi.
I have tested the #1 patch but the overlay doesn't load on any screen size. Is there something I have to do before?
Regards.
Comment #12
jessebeach commentedRerolled for freshness.
rteijeiro, would you mind testing again? The overlay loads fine for me with this patch.
This proposed change still needs some work below 450px width. Specifically what to do with the tabs.
Comment #13
jessebeach commentedaaaaaaaand the patch.
Comment #14
attiks commentedLooking good, but
Is the 50em a 'default' in case breakpoint isn't active/defined?
dito
Comment #15
nod_#13: responsive-overlay-1829236-12.patch queued for re-testing.
Comment #16.0
(not verified) commentedAdding dependency: http://drupal.org/node/1847084
Comment #17
jessebeach commentedComment #18
jessebeach commentedComment #19
klonosComment #20
nod_Overlay is dead to D8 #2088121: Remove Overlay.