File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -736,14 +736,15 @@ function _bindEvents(){
736736 document . body . scrollTop = 9999 ;
737737 }
738738 } , 500 ) ;
739+ utils . removeClass ( document . body , "em-mobile-translate" ) ;
739740 } ) ;
740741 // CLOUD-15103 解决 ios 部分手机点击输入框失焦后输入框不能自动收回问题
741742 utils . on ( doms . textInput , "blur" , function ( ) {
742743 setTimeout ( function ( ) {
743744 // document.body.scrollTop = 9999; // 在 iframe 下会有问题
744- document . body . scrollIntoView ( false ) ; // 元素的底端将和其所在滚动区的可视区域的底端对齐
745- alert ( "test ") ;
746- } , 500 ) ;
745+ // document.body.scrollIntoView(false); // 元素的底端将和其所在滚动区的可视区域的底端对齐 加载 iframe 的页面和 easemob.js 不在同一个域会出现问题。原因未知
746+ utils . addClass ( document . body , "em-mobile-translate ") ;
747+ } , 0 ) ;
747748 } ) ;
748749 }
749750
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ body.big-window{
2323 bottom : 0 ;
2424 }
2525}
26+ .em-mobile-translate {
27+ transform : translateY (1px );
28+ }
2629.em-widget-risk-warning {
2730 width :100% ;
2831 box-sizing : border-box ;
You can’t perform that action at this time.
0 commit comments