Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/calculateNodeHeight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type CalculatedNodeHeights = number[];
let hiddenTextarea: HTMLTextAreaElement | null = null;

const getHeight = (node: HTMLElement, sizingData: SizingData): number => {
const height = node.scrollHeight;
const height = node.scrollHeight + 1;

if (sizingData.sizingStyle.boxSizing === 'border-box') {
// border-box: add border, since height = content + padding + border
Expand Down