Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: calculate parent height even when the parent is a flex container #765

Merged
merged 1 commit into from
Mar 14, 2022
Merged
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
bugfix: calculate parent height even when the parent is a flex container
ej-toita committed Mar 14, 2022
commit 1c82318640d34da9dbab36ad02c5f8bdceb493e4
3 changes: 2 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -453,6 +453,7 @@ export class Resizable extends React.PureComponent<ResizableProps, State> {
}
base.style.position = 'relative';
base.style.minWidth = '100%';
base.style.minHeight = '100%';
const size = {
width: base.offsetWidth,
height: base.offsetHeight,
@@ -513,7 +514,7 @@ export class Resizable extends React.PureComponent<ResizableProps, State> {
element.style.position = 'absolute';
element.style.transform = 'scale(0, 0)';
element.style.left = '0';
element.style.flex = '0';
element.style.flex = '0 0 100%';
if (element.classList) {
element.classList.add(baseClassName);
} else {