MDL-41098 atto: Fix min-height on firefox.

This commit is contained in:
Damyon Wiese
2013-08-27 21:09:32 +08:00
parent 939320f721
commit ceaef9a9cc
4 changed files with 4 additions and 4 deletions
@@ -284,7 +284,7 @@ M.editor_atto = M.editor_atto || {
cssfont = css.responseText.substring(pos + 'font:'.length, css.responseText.length - 1);
atto.setStyle('font', cssfont);
}
atto.setStyle('min-height', (1.2 * (textarea.getAttribute('rows') - 1)) + 'em');
atto.setStyle('minHeight', (1.2 * (textarea.getAttribute('rows') - 1)) + 'em');
// Copy text to editable div.
atto.append(textarea.get('value'));
File diff suppressed because one or more lines are too long
@@ -284,7 +284,7 @@ M.editor_atto = M.editor_atto || {
cssfont = css.responseText.substring(pos + 'font:'.length, css.responseText.length - 1);
atto.setStyle('font', cssfont);
}
atto.setStyle('min-height', (1.2 * (textarea.getAttribute('rows') - 1)) + 'em');
atto.setStyle('minHeight', (1.2 * (textarea.getAttribute('rows') - 1)) + 'em');
// Copy text to editable div.
atto.append(textarea.get('value'));
+1 -1
View File
@@ -282,7 +282,7 @@ M.editor_atto = M.editor_atto || {
cssfont = css.responseText.substring(pos + 'font:'.length, css.responseText.length - 1);
atto.setStyle('font', cssfont);
}
atto.setStyle('min-height', (1.2 * (textarea.getAttribute('rows') - 1)) + 'em');
atto.setStyle('minHeight', (1.2 * (textarea.getAttribute('rows') - 1)) + 'em');
// Copy text to editable div.
atto.append(textarea.get('value'));