Skip to content

Commit

Permalink
publish 1.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
stulip committed Jun 1, 2021
1 parent cda7319 commit cbfaa79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-pell-rich-editor",
"description": "React Native Rich Editor",
"version": "1.8.3",
"version": "1.8.4",
"main": "src/index.js",
"author": {
"name": "wxik",
Expand Down
2 changes: 1 addition & 1 deletion src/RichEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export default class RichTextEditor extends Component {
that.setWebHeight(data);
break;
case messages.OFFSET_Y:
let offsetY = Number.parseInt(Number.parseInt(data) + that.layout.y);
let offsetY = Number.parseInt(Number.parseInt(data) + that.layout.y || 0);
offsetY > 0 && onCursorPosition(offsetY);
break;
default:
Expand Down
2 changes: 1 addition & 1 deletion src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function createHTML(options = {}) {
* {outline: 0px solid transparent;-webkit-tap-highlight-color: rgba(0,0,0,0);-webkit-touch-callout: none;box-sizing: border-box;}
html, body { margin: 0; padding: 0;font-family: Arial, Helvetica, sans-serif; font-size:1em; height: 100%}
body { overflow-y: hidden; -webkit-overflow-scrolling: touch;background-color: ${backgroundColor};caret-color: ${caretColor};}
.content {font-family: Arial, Helvetica, sans-serif;color: ${color}; width: 100%;-webkit-overflow-scrolling: touch;padding-left: 0;padding-right: 0;}
.content {font-family: Arial, Helvetica, sans-serif;color: ${color}; width: 100%;${!useContainer?"height:100%;":''}-webkit-overflow-scrolling: touch;padding-left: 0;padding-right: 0;}
.pell { height: 100%;} .pell-content { outline: 0; overflow-y: auto;padding: 10px;height: 100%;${contentCSSText}}
</style>
<style>
Expand Down

0 comments on commit cbfaa79

Please sign in to comment.