fhem_codemirror.js: fix window size (by MarcelK, forum #20444)

git-svn-id: https://svn.fhem.de/fhem/trunk@5603 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-04-22 19:16:55 +00:00
parent 3f103552bf
commit 2bb0559a60

View File

@@ -63,8 +63,7 @@ cm_wait()
if(ltype) {
$("head").append(
'<style type="text/css">'+
'.CodeMirror {height: auto;}'+
'.CodeMirror-scroll {overflow-y: hidden; overflow-x: auto;}'+
'.CodeMirror {height: ' + (window.innerHeight - 150) + 'px;}'+
'</style>');
}