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

Issue 9689048: [webui] fix vertical alignment of buttons and text inputs (Closed)

Created:
8 years, 9 months ago by Evan Stade
Modified:
8 years, 9 months ago
Reviewers:
csilv, Dan Beam
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

[webui] fix vertical alignment of buttons and text inputs The crux of the problem is that buttons and text inputs are being aligned on their baseline, which I believe is correct. However they place their baseline differently relative to the top and bottom border, so the top and bottom borders wind up misaligned. To correct this, we have to add padding to the buttons and/or text inputs. The amount of padding is platform-specific. Using vertical-align: (not-baseline) would work, but would make it look bad because the baselines would not align. BUG=117662 TEST=visual (on win, mac, linux, chromeos) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126796

Patch Set 1 #

Total comments: 8

Patch Set 2 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -16 lines) Patch
M chrome/browser/resources/history/history.js View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/options2/options_page.css View 1 chunk +0 lines, -15 lines 0 comments Download
M chrome/browser/resources/shared/css/widgets.css View 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/resources/shared_resources.grd View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Evan Stade
dbeam: please double check on windows (you don't have to compile -- just add the ...
8 years, 9 months ago (2012-03-13 01:35:31 UTC) #1
Dan Beam
why are you enabling platform specific CSS but not using [os='X'] in a selector (and ...
8 years, 9 months ago (2012-03-13 01:37:42 UTC) #2
Dan Beam
http://codereview.chromium.org/9689048/diff/1/chrome/browser/resources/history/history.js File chrome/browser/resources/history/history.js (right): http://codereview.chromium.org/9689048/diff/1/chrome/browser/resources/history/history.js#newcode872 chrome/browser/resources/history/history.js:872: cr.enablePlatformSpecificCSSRules(); where is this necessary? http://codereview.chromium.org/9689048/diff/1/chrome/browser/resources/shared/css/widgets.css File chrome/browser/resources/shared/css/widgets.css (right): ...
8 years, 9 months ago (2012-03-13 01:50:10 UTC) #3
Dan Beam
On 2012/03/13 01:37:42, Dan Beam wrote: > why are you enabling platform specific CSS but ...
8 years, 9 months ago (2012-03-13 01:50:26 UTC) #4
csilv
Tested on Mac, looks good. LGTM http://codereview.chromium.org/9689048/diff/1/chrome/browser/resources/shared/css/widgets.css File chrome/browser/resources/shared/css/widgets.css (right): http://codereview.chromium.org/9689048/diff/1/chrome/browser/resources/shared/css/widgets.css#newcode38 chrome/browser/resources/shared/css/widgets.css:38: <if expr="pp_ifdef('chromeos')"> Agreed ...
8 years, 9 months ago (2012-03-13 01:55:51 UTC) #5
Evan Stade
http://codereview.chromium.org/9689048/diff/1/chrome/browser/resources/history/history.js File chrome/browser/resources/history/history.js (right): http://codereview.chromium.org/9689048/diff/1/chrome/browser/resources/history/history.js#newcode872 chrome/browser/resources/history/history.js:872: cr.enablePlatformSpecificCSSRules(); On 2012/03/13 01:50:10, Dan Beam wrote: > where ...
8 years, 9 months ago (2012-03-13 01:58:09 UTC) #6
Patrick Dubroy
Thanks for doing this -- it's been bugging me for a while. One thing though: ...
8 years, 9 months ago (2012-03-13 19:11:46 UTC) #7
Evan Stade
On 2012/03/13 19:11:46, dubroy wrote: > Thanks for doing this -- it's been bugging me ...
8 years, 9 months ago (2012-03-13 20:09:55 UTC) #8
Dan Beam
lgtm (may want to write TODO above cr.enablePlatformSpecificCSSRules();)
8 years, 9 months ago (2012-03-14 01:26:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/9689048/1006
8 years, 9 months ago (2012-03-14 21:00:28 UTC) #10
commit-bot: I haz the power
8 years, 9 months ago (2012-03-15 00:13:03 UTC) #11
Change committed as 126796

Powered by Google App Engine
This is Rietveld 408576698