Skip to content

Commit e6ce818

Browse files
authoredMar 14, 2022
bugfix: calculate parent height even when the parent is a flex container (#765)
1 parent d5f41aa commit e6ce818

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ export class Resizable extends React.PureComponent<ResizableProps, State> {
453453
}
454454
base.style.position = 'relative';
455455
base.style.minWidth = '100%';
456+
base.style.minHeight = '100%';
456457
const size = {
457458
width: base.offsetWidth,
458459
height: base.offsetHeight,
@@ -513,7 +514,7 @@ export class Resizable extends React.PureComponent<ResizableProps, State> {
513514
element.style.position = 'absolute';
514515
element.style.transform = 'scale(0, 0)';
515516
element.style.left = '0';
516-
element.style.flex = '0';
517+
element.style.flex = '0 0 100%';
517518
if (element.classList) {
518519
element.classList.add(baseClassName);
519520
} else {

0 commit comments

Comments
 (0)