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

Issue 2905433002: Refresh the Incognito NTP layout on default font size change (Closed)

Created:
3 years, 7 months ago by msramek
Modified:
3 years, 7 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, arv+watch_chromium.org, pedrosimonetti+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Refresh the Incognito NTP layout on default font size change The maximum width of the Incognito NTP content is not described by CSS, but computed by JS as a function of the font size. Therefore, it must be recomputed on font size changes. BUG=693525 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2905433002 Cr-Commit-Position: refs/heads/master@{#474546} Committed: https://chromium.googlesource.com/chromium/src/+/81064bed1ae35ec03307b6d7ffee8336386429b1

Patch Set 1 #

Total comments: 12

Patch Set 2 : Observing the preference change. #

Patch Set 3 : classList.toggle #

Total comments: 5

Patch Set 4 : s/tooWide/too-wide/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -24 lines) Patch
M chrome/browser/resources/ntp4/md_incognito_tab.css View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/ntp4/md_incognito_tab.js View 1 2 3 2 chunks +30 lines, -23 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 1 3 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (23 generated)
msramek
Hi Dan, Sorry for spamming you lately, but please have a look :) This CL ...
3 years, 7 months ago (2017-05-23 19:59:19 UTC) #6
Dan Beam
what about zoom changes? i know it's nice to be webby, but is there a ...
3 years, 7 months ago (2017-05-24 03:09:19 UTC) #9
msramek
On 2017/05/24 03:09:19, Dan Beam wrote: > what about zoom changes? Zooming doesn't cause this ...
3 years, 7 months ago (2017-05-24 12:55:11 UTC) #10
msramek
Thanks, Dan. So I tried a different approach :) https://codereview.chromium.org/2905433002/diff/20001/chrome/browser/resources/ntp4/md_incognito_tab.js File chrome/browser/resources/ntp4/md_incognito_tab.js (right): https://codereview.chromium.org/2905433002/diff/20001/chrome/browser/resources/ntp4/md_incognito_tab.js#newcode47 chrome/browser/resources/ntp4/md_incognito_tab.js:47: ...
3 years, 7 months ago (2017-05-24 12:56:02 UTC) #11
Dan Beam
https://codereview.chromium.org/2905433002/diff/20001/chrome/browser/resources/ntp4/md_incognito_tab.js File chrome/browser/resources/ntp4/md_incognito_tab.js (right): https://codereview.chromium.org/2905433002/diff/20001/chrome/browser/resources/ntp4/md_incognito_tab.js#newcode47 chrome/browser/resources/ntp4/md_incognito_tab.js:47: bulletpoints[1].classList.remove('tooWide'); On 2017/05/24 12:56:02, msramek wrote: > On 2017/05/24 ...
3 years, 7 months ago (2017-05-24 17:43:54 UTC) #16
msramek
https://codereview.chromium.org/2905433002/diff/20001/chrome/browser/resources/ntp4/md_incognito_tab.js File chrome/browser/resources/ntp4/md_incognito_tab.js (right): https://codereview.chromium.org/2905433002/diff/20001/chrome/browser/resources/ntp4/md_incognito_tab.js#newcode47 chrome/browser/resources/ntp4/md_incognito_tab.js:47: bulletpoints[1].classList.remove('tooWide'); On 2017/05/24 17:43:54, Dan Beam wrote: > On ...
3 years, 7 months ago (2017-05-24 23:16:37 UTC) #22
Dan Beam
lgtm w/nits https://codereview.chromium.org/2905433002/diff/80001/chrome/browser/resources/ntp4/md_incognito_tab.js File chrome/browser/resources/ntp4/md_incognito_tab.js (right): https://codereview.chromium.org/2905433002/diff/80001/chrome/browser/resources/ntp4/md_incognito_tab.js#newcode28 chrome/browser/resources/ntp4/md_incognito_tab.js:28: bulletpoints[1].classList.toggle('tooWide', tooWide); classes should be dash-form https://codereview.chromium.org/2905433002/diff/80001/chrome/browser/resources/ntp4/md_incognito_tab.js#newcode54 ...
3 years, 7 months ago (2017-05-25 01:02:39 UTC) #23
msramek
Thanks! Unfortunately I'll have to leave the 100ms constant there, because I don't think there's ...
3 years, 7 months ago (2017-05-25 01:49:36 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2905433002/120001
3 years, 7 months ago (2017-05-25 02:00:48 UTC) #30
Dan Beam
https://codereview.chromium.org/2905433002/diff/80001/chrome/browser/resources/ntp4/md_incognito_tab.js File chrome/browser/resources/ntp4/md_incognito_tab.js (right): https://codereview.chromium.org/2905433002/diff/80001/chrome/browser/resources/ntp4/md_incognito_tab.js#newcode54 chrome/browser/resources/ntp4/md_incognito_tab.js:54: setTimeout(recomputeLayoutWidth, 100); On 2017/05/25 01:49:35, msramek wrote: > On ...
3 years, 7 months ago (2017-05-25 03:11:27 UTC) #31
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 04:12:53 UTC) #34
Message was sent while issue was closed.
Committed patchset #4 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/81064bed1ae35ec03307b6d7ffee...

Powered by Google App Engine
This is Rietveld 408576698