Jelajahi Sumber

:bug: 切换到上下模式句子框很高

visuddhinanda@gmail.com 4 tahun lalu
induk
melakukan
662465e738
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 5 1
      public/app/studio/js/common.js

+ 5 - 1
public/app/studio/js/common.js

@@ -171,12 +171,16 @@ function setArrange(mode) {
 		getStyleClass("trandiv").style.flex = "1";
 		getStyleClass("pardiv").style.flexDirection = "column";
 		getStyleClass("sent_wbw_trans").style.flexDirection = "column";
+        	$(".translate_sent_head").each(function(){
+                    $(this).height('auto')
+                });
 	} else if (_display_para_arrange == 0) {
 		/* 0 左右对读 */
 		getStyleClass("wbwdiv").style.flex = "7";
 		getStyleClass("trandiv").style.flex = "3";
 		getStyleClass("pardiv").style.flexDirection = "row";
 		getStyleClass("sent_wbw_trans").style.flexDirection = "row";
+	    $(".translate_sent_head").each(function(){$(this).height($(this).parent()[0].scrollHeight+"px")})
 	}
 	if (_display_sbs == 1) {
 		/* 逐句对读 */
@@ -633,7 +637,7 @@ function tab_click(panalId, tabid, callback = null, parm = null) {
 		}
 	}
 	guide_init();
-	$(".translate_sent_head").each(function(){$(this).height($(this).parent()[0].scrollHeight+"px")})
+
 }
 
 /*