MDL-41912 Atto: Min-height fix - div was too small by default.
authorDamyon Wiese <damyon@moodle.com>
Wed, 2 Oct 2013 05:13:35 +0000 (13:13 +0800)
committerDamyon Wiese <damyon@moodle.com>
Wed, 2 Oct 2013 05:13:35 +0000 (13:13 +0800)
lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js
lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-min.js
lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor.js
lib/editor/atto/yui/src/editor/js/editor.js

index ccdc137..b656e3f 100644 (file)
Binary files a/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js and b/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js differ
index 6bf193f..0a79882 100644 (file)
Binary files a/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-min.js and b/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-min.js differ
index ccdc137..b656e3f 100644 (file)
Binary files a/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor.js and b/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor.js differ
index be956f0..d6e0c6f 100644 (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'));