Commit 5a53b62b authored by satorux@chromium.org's avatar satorux@chromium.org

Fix a layout issue in the input method list in the language options on Chrome

Before the fix, we didn't have any space between a checkbox and the input
method name, which looked bad.

Note that we don't have this problem in other options pages, as our HTML
files are formatted like:

      <input id="foobar" type="checkbox">
      <span i18n-content="foobar">

the line break between two elements make a text node of a single space
inbetween.

BUG=chromium-os:11248
TEST=on chrome os, open the language options, see the input method list.

Review URL: http://codereview.chromium.org/6241016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72765 0039d316-1c4b-4281-b951-d872f2087c98
parent 754e3382
......@@ -136,7 +136,10 @@ cr.define('options', function() {
this.handleCheckboxClick_.bind(this));
var label = document.createElement('label');
label.appendChild(input);
label.appendChild(document.createTextNode(inputMethod.displayName));
// Adding a space between the checkbox and the text. This is a bit
// dirty, but we rely on a space character for all other checkboxes.
label.appendChild(document.createTextNode(
' ' + inputMethod.displayName));
label.style.display = 'none';
label.languageCodeSet = inputMethod.languageCodeSet;
// Add the configure button if the config page is present for this
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment