Browse Source

Reconfiguring the height of the SCEditor edit area depending on the height of the button bar

Visman 2 years ago
parent
commit
8b1c9dedc7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      public/js/scloader.js

+ 2 - 0
public/js/scloader.js

@@ -73,6 +73,8 @@ ForkBB.editor = (function (doc, win) {
         sceditor.create(textarea, options);
         sceditor.create(textarea, options);
         instance = sceditor.instance(textarea);
         instance = sceditor.instance(textarea);
 
 
+        instance.height(instance.height() - instance.getBody().offsetHeight + 300);
+
         if (smiliesEnabled) {
         if (smiliesEnabled) {
             var checkbox = doc.querySelector('input[name="hide_smilies"]');
             var checkbox = doc.querySelector('input[name="hide_smilies"]');