Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

Commit 198a78f

Browse files
authored
Merge pull request #229 from Strikersb/master
修复了自动高度的时候全屏没有滚动条的情况
2 parents e786e41 + b7b58e6 commit 198a78f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plugins/autoheight/autoheight.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ KindEditor.plugin('autoheight', function(K) {
2424
}
2525

2626
function resetHeight() {
27+
if(self.fullscreenMode){
28+
return;
29+
}
2730
var edit = self.edit;
2831
var body = edit.doc.body;
2932
edit.iframe.height(minHeight);
@@ -34,7 +37,9 @@ KindEditor.plugin('autoheight', function(K) {
3437
minHeight = K.removeUnit(self.height);
3538

3639
self.edit.afterChange(resetHeight);
37-
hideScroll();
40+
if(!self.fullscreenMode){
41+
hideScroll();
42+
}
3843
resetHeight();
3944
}
4045

0 commit comments

Comments
 (0)