New CodeEditor completed, tested all languages and working. Fixed some python styles. [TFS Changeset #59358]
9 lines
342 B
JavaScript
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";
|
|
}
|
|
} |