فهرست منبع

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"]');