瀏覽代碼

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

Visman 2 年之前
父節點
當前提交
8b1c9dedc7
共有 1 個文件被更改,包括 2 次插入0 次删除
  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);
         instance = sceditor.instance(textarea);
 
+        instance.height(instance.height() - instance.getBody().offsetHeight + 300);
+
         if (smiliesEnabled) {
             var checkbox = doc.querySelector('input[name="hide_smilies"]');