wangweimin преди 4 години
родител
ревизия
e6fac5d1fe
променени са 3 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 5 0
      docs/static/pywebio.css
  2. 0 1
      pywebio/session/threadbased.py
  3. 1 1
      webiojs/src/models/input/textarea.ts

+ 5 - 0
docs/static/pywebio.css

@@ -16,3 +16,8 @@
 .sphinx-tabs {
     margin-bottom: 1em;
 }
+
+/* Table cell */
+td .line-block {
+    margin-bottom: 0 !important;
+}

+ 0 - 1
pywebio/session/threadbased.py

@@ -34,7 +34,6 @@ class ThreadBasedSession(Session):
         curr = id(threading.current_thread())
         session = cls.thread2session.get(curr)
         if session is None:
-            logger.debug("SessionNotFoundException in %s", threading.current_thread())
             raise SessionNotFoundException(
                 "Can't find current session. Maybe session closed. Did you forget to use `register_thread` ?")
         return session

+ 1 - 1
webiojs/src/models/input/textarea.ts

@@ -69,7 +69,7 @@ export class Textarea extends InputItem {
             setTimeout(function () {  // 需要等待当前表单显示后,重新计算表单高度
                 // 重新计算表单高度
                 that.element.parents('.card').height('auto');
-            }, state.ShowDuration);
+            }, state.ShowDuration+40);
         }
 
         return this.element;