Comments (3)
Ok, I'll mention that in the doc... As you said this is not a bug, a ReflexContainer is supposed to be used in a parent component which should have an height, it doesn't necessarily has to be specified as a fixed value (like in the demo I sent) it could be "100vh" or itself set to "100%" of its parent ... Thanks btw!
from re-flex.
Can you be a bit more specific as to what is not working on your side? I created a basic test project using react-create-app and reflex, works fine as far as I can tell... Here is the link to my test project.
from re-flex.
My vertical splitter was not visible at all and horizontal was visible but not moveable. However, I've tracked down the bug. In src/lib/reflex-styles.scss
the height and width of ReflexContainer
are set to 100% of the parenting element. Which is not there! The quick fix is just to add a parenting div and set the desired height there.
So instead of:
<ReflexContainer orientation="vertical">
<ReflexElement className="left-pane">
<div className="pane-content">
Left Pane (resizeable)
</div>
</ReflexElement>
<ReflexSplitter/>
<ReflexElement className="right-pane">
<div className="pane-content">
Right Pane (resizeable)
</div>
</ReflexElement>
</ReflexContainer>
we might have something like this:
<div style={{height:500}}>
<ReflexContainer orientation="vertical">
<ReflexElement className="left-pane">
<div className="pane-content">
Left Pane (resizeable)
</div>
</ReflexElement>
<ReflexSplitter/>
<ReflexElement className="right-pane">
<div className="pane-content">
Right Pane (resizeable)
</div>
</ReflexElement>
</ReflexContainer>
</div>
Its not really a bug but I think it would be nice if it is mentioned in the documentation. Awesome library btw!
from re-flex.
Related Issues (20)
- ReflexSplitter is stuck for orientation=horizontal and missing for orientation=vertical HOT 6
- Is there a way to completely hide minimized panel? HOT 3
- Bug: programmatically set `size` results in different `flexGrow` HOT 11
- Remounting of `ReflexElement` children when collapsing panes HOT 1
- How to apply minSize / maxSize constraint when using a ReflexSplitter on parent container ? HOT 1
- Performance issue in start resize HOT 4
- Bug: Setting ```flex``` to 0 results in ```flex``` 1 HOT 1
- Blocks ability to use child refs? HOT 3
- ReflexElement resize HOT 2
- Component state is reinitialized when a ReflexElement is collapsing HOT 1
- React 18 typescript problem HOT 5
- Cannot read property 'ref' of undefined HOT 2
- React 18 peers dependency HOT 1
- Not working with nextjs HOT 9
- windowResizeAware horizontal container HOT 1
- ag-grid doesn't display in a resizable pane HOT 6
- Contrlled elemented example with functional components HOT 1
- Problem installing v4.0.11 on Yarn HOT 4
- node-sass as a dependency? HOT 1
- Where to find a description of version changes? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from re-flex.