Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Issue 138213007: Fixes for two JS bugs on DCC (Closed)

Created:
6 years, 11 months ago by Arthur Evans
Modified:
6 years, 10 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

From Eric, fixes for two bugs: * Expand/collapse doesn't work on mobile if the page is loaded in landscape mode where width > 580px, then rotated into portrait where width < 580px. * Fatnav should only close on click, not on mouseleave. To test expand/collapse bug, open link in standard browser and squeeze window down to mobile width (<580px). Without the fix, this results in the sections collapsing, but not expanding when clicked. Reloading the page at the smaller width restores expand/collapse behavior. With the fix, the expand/collapse should work correctly regardless after resizing the browser window. (This can also be tested using a mobile device of the appropriate size, such as a Nexus 4. Resizing the desktop window is a bit easier). A sample page with collapsible sections is: multidevice/data-compression.html BUG= R=kalman@chromium.org

Patch Set 1 #

Total comments: 17

Patch Set 2 : Further fixes based on feedback. #

Patch Set 3 : More fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -46 lines) Patch
M chrome/common/extensions/docs/static/js/article.js View 1 2 2 chunks +41 lines, -33 lines 0 comments Download
M chrome/common/extensions/docs/static/js/fatnav.js View 1 chunk +0 lines, -13 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Arthur Evans
Hi Ben, Can you review these JS fixes from Eric? They seem to work fine ...
6 years, 11 months ago (2014-01-22 18:32:45 UTC) #1
not at google - send to devlin
Renato or Eric - could you take ownership of the docs UI now? I'll let ...
6 years, 11 months ago (2014-01-22 18:47:30 UTC) #2
ericbidelman
lgtm
6 years, 11 months ago (2014-01-22 19:25:50 UTC) #3
Arthur Evans
On 2014/01/22 18:47:30, kalman wrote: > Renato or Eric - could you take ownership of ...
6 years, 11 months ago (2014-01-22 22:01:19 UTC) #4
mkearney1
lgtm
6 years, 11 months ago (2014-01-22 22:08:50 UTC) #5
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 11 months ago (2014-01-22 22:09:00 UTC) #6
Arthur Evans
On 2014/01/22 22:09:00, I haz the power (commit-bot) wrote: > No LGTM from a valid ...
6 years, 11 months ago (2014-01-22 22:40:16 UTC) #7
Arthur Evans
Hi Jeffrey, This is a UI fix for the doc server that needs review by ...
6 years, 10 months ago (2014-02-04 19:05:08 UTC) #8
Jeffrey Yasskin
https://codereview.chromium.org/138213007/diff/1/chrome/common/extensions/docs/static/js/article.js File chrome/common/extensions/docs/static/js/article.js (right): https://codereview.chromium.org/138213007/diff/1/chrome/common/extensions/docs/static/js/article.js#newcode14 chrome/common/extensions/docs/static/js/article.js:14: isLargerThanMobileQuery.addListener(onMediaQuery); I'm surprised this works before onMediaQuery is defined. ...
6 years, 10 months ago (2014-02-04 22:22:01 UTC) #9
Renato Mangini (chromium)
@ericbidelman, do you want me to address these comments? On 2014/02/04 22:22:01, Jeffrey Yasskin wrote: ...
6 years, 10 months ago (2014-02-04 22:46:03 UTC) #10
ericbidelman
Renato, that would be great. Thanks. https://codereview.chromium.org/138213007/diff/1/chrome/common/extensions/docs/static/js/article.js File chrome/common/extensions/docs/static/js/article.js (right): https://codereview.chromium.org/138213007/diff/1/chrome/common/extensions/docs/static/js/article.js#newcode58 chrome/common/extensions/docs/static/js/article.js:58: document.body.classList.add('no-permalink'); It can, ...
6 years, 10 months ago (2014-02-04 22:53:41 UTC) #11
Jeffrey Yasskin
https://codereview.chromium.org/138213007/diff/1/chrome/common/extensions/docs/static/js/article.js File chrome/common/extensions/docs/static/js/article.js (right): https://codereview.chromium.org/138213007/diff/1/chrome/common/extensions/docs/static/js/article.js#newcode58 chrome/common/extensions/docs/static/js/article.js:58: document.body.classList.add('no-permalink'); Can you show me where? https://code.google.com/p/chromium/codesearch/#search/&sq=package:chromium$&q=no-permalink returns only ...
6 years, 10 months ago (2014-02-04 22:58:42 UTC) #12
ericbidelman
https://codereview.chromium.org/138213007/diff/1/chrome/common/extensions/docs/static/js/article.js File chrome/common/extensions/docs/static/js/article.js (right): https://codereview.chromium.org/138213007/diff/1/chrome/common/extensions/docs/static/js/article.js#newcode58 chrome/common/extensions/docs/static/js/article.js:58: document.body.classList.add('no-permalink'); Yep, https://code.google.com/p/chromium/codesearch/#chromium/src/chrome/common/extensions/docs/static/sass/_html.scss&sq=package:chromium$&q=no-permalink&l=223 is the one. I'd like to ...
6 years, 10 months ago (2014-02-05 23:58:08 UTC) #13
Arthur Evans
I've updated the comments and moved the MQ event listener to the end of the ...
6 years, 10 months ago (2014-02-07 22:50:46 UTC) #14
Jeffrey Yasskin
Patch set 2 is a diff against patch set 1 rather than a diff against ...
6 years, 10 months ago (2014-02-07 23:37:33 UTC) #15
Arthur Evans
Hi Jeffery, I've fixed the problems here but I can't get the history straightened out ...
6 years, 10 months ago (2014-02-12 01:31:08 UTC) #16
not at google - send to devlin
6 years, 10 months ago (2014-02-12 20:29:05 UTC) #17
Message was sent while issue was closed.
Renato is a better person to review this than me. lgtm once he's happy.

Powered by Google App Engine
This is Rietveld 408576698