Skip to content

Commit 573e591

Browse files
authored
1 parent dd49527 commit 573e591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ export class Rnd extends React.PureComponent<Props, State> {
427427
if (maxHeight && typeof maxHeight === "string") {
428428
if (maxHeight.endsWith("%")) {
429429
const ratio = Number(maxHeight.replace("%", "")) / 100;
430-
maxHeight = parentSize.width * ratio;
430+
maxHeight = parentSize.height * ratio;
431431
} else if (maxHeight.endsWith("px")) {
432432
maxHeight = Number(maxHeight.replace("px", ""));
433433
}

0 commit comments

Comments
 (0)