zhangchao 4 years ago
parent
commit
6b816b7d4e
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/editor.html

+ 1
- 2
src/editor.html View File

@@ -1037,7 +1037,7 @@
1037 1037
 			}
1038 1038
 
1039 1039
 			zss_editor.calculateEditorHeightWithCaretPosition = function() {
1040
-				var caretYPosition = zss_editor.getCaretYPosition();
1040
+				var caretYPosition = zss_editor.platform === 'ios' ? zss_editor.getCaretYPosition() : 0;
1041 1041
 				var lineHeight = 20;
1042 1042
 				var halfLineHeight = lineHeight/2;
1043 1043
 				var offsetY = window.document.body.scrollTop;
@@ -1684,7 +1684,6 @@
1684 1684
 				font-family: Arial, Helvetica, sans-serif;
1685 1685
 				color: #000;
1686 1686
 				width: 95%;
1687
-				height: 100%;
1688 1687
 				-webkit-overflow-scrolling: touch;
1689 1688
 				overflow:auto;
1690 1689
 				padding-left: 10px;