Skip to content
Snippets Groups Projects
Commit f361cc4a authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

Merge pull request #1819 from mozilla/issue_1548_blank_chrome_window

Fix chrome showing a blank screen on resizing to exactly 640px.
parents 883e93b0 0af3e780
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* If the max-width changes, the size given in screen_size_hacks.js must be
* updated as well.
*/
@media screen and (max-width: 640px) {
header, footer {
......
......@@ -12,7 +12,10 @@
signInEl = $("#signIn");
selectEmailEl.css("position", "static");
if($(window).width() >= 640) {
// The mobile breakpoint is 640px in the CSS. If the max-width is changed
// there, it must be changed here as well.
if($(window).width() > 640) {
// First, remove the mobile hacks
selectEmailEl.css("width", "");
contentEl.css("min-height", "");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment