-
Notifications
You must be signed in to change notification settings - Fork 51
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
broken? #615
Comments
I also get a version conflict with the recently merged dependabot changes with rollup:
|
The following React app also has the following error: import React from 'react';
import { Allotment, setSashSize } from 'allotment'
const App = () => {
return (
<div style={{padding: '40px'}}>
<Allotment vertical={true}>
<Allotment.Pane maxSize={600}>
<p>Lorem Ipsum</p>
</Allotment.Pane>
<Allotment.Pane maxSize={400}>
<p>Lorem Ipsum</p>
</Allotment.Pane>
</Allotment>
</div>
);
}
export default App;
It seems this error only occurs with attempting to set |
It seems like allotment's current behavior is to just render the panes vertically with no separator and no resizing capabilities; I am trying to inspect the source code and I think no CSS is being applied in my case... looking further into it. |
You are right... I am embarrassed. Sorry, and thanks! |
@woodreamz it is still not working even when importing the CSS |
Hi @mizlan. I've tried to reproduce the problem with: Node 20.3.1 but with no success. Just one small thing to check. Are you giving your container element a height? I only ask because if it has height 0 then it often looks like the Allotment component isn't working. Also, thanks for pointing out the rollup dependency conflict. I'll see if I can resolve it. |
I faced the same issue, however importing
It works in both situations. |
I created a fresh new create-react-app project and tried to create an Allotment but I don't see any separator and nothing is draggable. Node version 18 and 20, React v18.2.0
The text was updated successfully, but these errors were encountered: