Skip to content

Commit

Permalink
解决编辑器预览高度设置的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 3, 2015
1 parent fd8c2dd commit 2db3b3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/MDEditor.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@
});
}
css(self.preview, {
height: this.scrollHeight + "px"
height: self.textarea.offsetHeight + "px"
});
});
};
Expand Down
2 changes: 1 addition & 1 deletion lib/MDEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
'overflow':"auto"
});
}
css(self.preview,{'height':this.scrollHeight + "px"});
css(self.preview,{'height':self.textarea.offsetHeight + "px"});
});
}
/**
Expand Down

0 comments on commit 2db3b3e

Please sign in to comment.