summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-15 00:16:36 +0000
committerjshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-15 00:16:36 +0000
commita529baa5b125352093276703aee16e736a4f4e4f (patch)
tree745e2341f9e2d4f40227a921a28e70831c0a013c /chrome
parentea7df9819aa0820c7dc2a456ce13a4f1927daa9d (diff)
downloadchromium_src-a529baa5b125352093276703aee16e736a4f4e4f.zip
chromium_src-a529baa5b125352093276703aee16e736a4f4e4f.tar.gz
chromium_src-a529baa5b125352093276703aee16e736a4f4e4f.tar.bz2
Change the way button width is calculated for the button. Currently, for the default button (for which
GetDialogButtonLabel returns an empty string), the width is always set to kDialogMinButtonWidth. It's sufficiently large for 'Ok', 'Close' and 'Cancel' in most languages, but not large enough for some languages. For those languages, this CL sets the button width to max(preferred_width, kDialogMinButtoWidth), the former of which is calculated using the translated strings for Ok/Close/Cancel. This needs to be merged to 2.0 branch (the location of views has moved from under chrome\ to the top-level source directory in the trunk) http://crbug.com/11710 TEST: Start Chrome with '--lang=ml' cmd line flag. Open up the option dialog and see 'Close' button at the bottom is large enough for the label ('Close' in Malayalam) and some space around it. Review URL: http://codereview.chromium.org/113250 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16131 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
0 files changed, 0 insertions, 0 deletions