Skip to content

Commit

Permalink
Add review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid committed Apr 15, 2024
1 parent 8abd0ee commit f95e1bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/MarkdownTextInput.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,7 @@ const MarkdownTextInput = React.forwardRef<TextInput, MarkdownTextInputProps>(
return;
}

const newWidth = divRef.current.offsetWidth;
const newHeight = divRef.current.offsetHeight;
const {offsetWidth: newWidth, offsetHeight: newHeight} = divRef.current;

if (newHeight !== dimensions.current?.height || newWidth !== dimensions.current.width) {
dimensions.current = {height: newHeight, width: newWidth};
Expand Down

0 comments on commit f95e1bd

Please sign in to comment.