MDL-41912 Atto: Min-height fix - div was too small by default.

This commit is contained in:
Damyon Wiese 2013-10-02 13:13:35 +08:00
parent a929e5e83d
commit 766c6401b7
4 changed files with 5 additions and 5 deletions

View File

@ -352,7 +352,7 @@ M.editor_atto = M.editor_atto || {
cssfont = css.responseText.substring(pos + 'font:'.length, css.responseText.length - 1);
atto.setStyle('font', cssfont);
}
atto.setStyle('minHeight', (1.2 * (textarea.getAttribute('rows') - 1)) + 'em');
atto.setStyle('minHeight', (1.2 * (textarea.getAttribute('rows'))) + 'em');
// Copy text to editable div.
atto.append(textarea.get('value'));

File diff suppressed because one or more lines are too long

View File

@ -352,7 +352,7 @@ M.editor_atto = M.editor_atto || {
cssfont = css.responseText.substring(pos + 'font:'.length, css.responseText.length - 1);
atto.setStyle('font', cssfont);
}
atto.setStyle('minHeight', (1.2 * (textarea.getAttribute('rows') - 1)) + 'em');
atto.setStyle('minHeight', (1.2 * (textarea.getAttribute('rows'))) + 'em');
// Copy text to editable div.
atto.append(textarea.get('value'));

View File

@ -350,7 +350,7 @@ M.editor_atto = M.editor_atto || {
cssfont = css.responseText.substring(pos + 'font:'.length, css.responseText.length - 1);
atto.setStyle('font', cssfont);
}
atto.setStyle('minHeight', (1.2 * (textarea.getAttribute('rows') - 1)) + 'em');
atto.setStyle('minHeight', (1.2 * (textarea.getAttribute('rows'))) + 'em');
// Copy text to editable div.
atto.append(textarea.get('value'));