]> source.dussan.org Git - nextcloud-server.git/commitdiff
Added fillHeight() js function for resizing editor
authorTom Needham <needham.thomas@gmail.com>
Tue, 4 Oct 2011 18:46:27 +0000 (19:46 +0100)
committerTom Needham <needham.thomas@gmail.com>
Tue, 4 Oct 2011 18:46:27 +0000 (19:46 +0100)
apps/files_texteditor/css/style.css
apps/files_texteditor/js/editor.js

index 16d9458608d5224d8ed64ebc23b0d25803bba97a..272246901cb9ffa74c5d926f034e988358ad52e5 100644 (file)
@@ -1,10 +1,11 @@
 #editor{
        position: absoloute;
-       height: 0;
-       width: 0;
+       display: block;
+       padding-top: 40px
+/*     
        top: 41px;
        left: 160px;
-       z-index: -1;
+*/
 }
 #editorwrapper{
        position: absoloute;
index 814323732fa1b591f0772134a4e35a818c90f96e..1dd4b5d6152a97f14bd0a868c028fa8a3e1f8776 100644 (file)
@@ -1,9 +1,9 @@
 function setEditorSize(){
        // Sets the size of the text editor window.
        //$('#editor').css('height', $(window).height()-81);
-       $('#editor').css('height', $(window).height()-121);
-       $('#editor').css('width', $(window).width()-160);
-       $('#editor').css('padding-top', '40px');                
+       //$('#editor').css('height', $(window).height()-121);
+       fillHeight($('#editor'));
+       //$('#editor').css('width', $(window).width()-160);
 }
 
 function getFileExtension(file){
@@ -137,11 +137,11 @@ function showFileEditor(dir,filename){
                                        });
                                });
                        bindControlEvents();
+                       setEditorSize();
                        // End success
                        }
                        // End ajax
                        });
-       setEditorSize();
 }
 
 function hideFileEditor(){