Files
Umbraco-CMS/umbraco/presentation/umbraco_client/CodeArea/resizeTextEditor.js
Shandem 6f9f096f72 DO NOT DOWNLOAD, STABLE RELEASE AVAILABLE ON THE RELEASES TAB
New CodeEditor completed, tested all languages and working.
Fixed some python styles.

[TFS Changeset #59358]
2009-09-22 15:26:41 +00:00

9 lines
342 B
JavaScript

function resizeTextArea(textEditor, offsetX, offsetY) {
var clientHeight = getViewportHeight();
var clientWidth = getViewportWidth();
if (textEditor != null) {
textEditor.style.width = (clientWidth - offsetX) + "px";
textEditor.style.height = (clientHeight - getY(textEditor) - offsetY) + "px";
}
}