mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-41912 Atto: Min-height fix - div was too small by default.
This commit is contained in:
parent
a929e5e83d
commit
766c6401b7
@ -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
@ -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'));
|
||||
|
2
lib/editor/atto/yui/src/editor/js/editor.js
vendored
2
lib/editor/atto/yui/src/editor/js/editor.js
vendored
@ -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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user