MDL-41098 atto: Fix min-height on firefox.
This commit is contained in:
+1
-1
@@ -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
File diff suppressed because one or more lines are too long
+1
-1
@@ -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
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user