Skip to content

Commit

Permalink
MDL-41912 Atto: Min-height fix - div was too small by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed Oct 2, 2013
1 parent a929e5e commit 766c640
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
2 changes: 1 addition & 1 deletion lib/editor/atto/yui/src/editor/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 766c640

Please sign in to comment.