We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd49527 commit 573e591Copy full SHA for 573e591
src/index.tsx
@@ -427,7 +427,7 @@ export class Rnd extends React.PureComponent<Props, State> {
427
if (maxHeight && typeof maxHeight === "string") {
428
if (maxHeight.endsWith("%")) {
429
const ratio = Number(maxHeight.replace("%", "")) / 100;
430
- maxHeight = parentSize.width * ratio;
+ maxHeight = parentSize.height * ratio;
431
} else if (maxHeight.endsWith("px")) {
432
maxHeight = Number(maxHeight.replace("px", ""));
433
}
0 commit comments