Comments (12)
Thank you so much!
from re-flex.
I'm not sure what you are trying to do exactly, my guess is that there are several workarounds that you could try. Maybe you would need to use an other custom component inside the ReflexElement
and overflow from this one so you have complete control. You can also pass a custom class to an element ReflexElement className="my-class"
so you can overwrite its default css properties... If you could put a codepen or similar with a demo of what you are trying to achieve I can take a look. Here is a pen demo using reflex I created a while ago to use as a starting point.
from re-flex.
Thanks for the reply. So here is a demo i created: https://codepen.io/anon/pen/ypPJgW
What I am trying to do is make the hidden part visible.
<div
style={{
position: 'absolute',
width: '200px',
height: '100px',
backgroundColor: 'white',
top: '-50px',
right: '-100px',
}}
>
test
</div>
from re-flex.
I also tried to add a div
wrapper. https://codepen.io/anon/pen/zpPBwG
But this method will add a scrollbar, which is different from what I want.
from re-flex.
I am just adding overflow: visible
to the left-pane
class and z-index: 1000
for the white div and it works:
.left-pane {
background-color: rgb(34, 34, 34);
overflow: visible;
color: #03d8ff;
}
<ReflexElement className="left-pane">
<div
style={{
position: 'absolute',
width: '200px',
height: '100px',
backgroundColor: 'white',
top: '-50px',
right: '-100px',
zIndex: 1000
}}
>
test
</div>
</ReflexElement>
from re-flex.
Thanks for the reply.
Sorry, I modified the example, here is actually how I use re-flex in our product, https://codepen.io/anon/pen/qpVNvX
If I add overflow: visible !important
to the test
class, then it will take the full space.
from re-flex.
After looking a bit into it, I unfortunately don't have a suggestion for you. I'm not sure that what you are looking for is doable and I don't see a strong use case for such feature so I will close this issue as "out-of-scope" for the time being. I would recommend you take a look at combining the reflex layout with other library such as react-portal to get the desired result or something similar to react-bootstrap overlays which I successfully used in my app with reflex.
Hope that helps.
from re-flex.
I tried one more time and I think that by setting the test
class as follow it produces the result you are looking for (I also had to set overflow: visible !important;
on the outer ReflexElement
to get the div visible on the right-pane):
.test {
overflow: visible !important;
& > div {
height: auto !important;
}
}
from re-flex.
When I add css to ReflexElement that has overflow: visible !important, my splitter is no longer movable. Is there anyway to have overflow: visible and a working splitter?
from re-flex.
What are you trying to do exactly? can you share a codepen/sandbox that shows the issue? Did you try to add css to an inner div inside ReflexElement
instead?
from re-flex.
I'm trying to make it so that I can drag the splitter to the left or right, but the text is still visible if the splitter is dragged past the text (See screenshot). Or if there's some way of displaying the text below the splitter. I tried displaying the value in a div outside the ReflexContainer, but it would only update after releasing the splitter, I couldn't get it to update while dragging the splitter.
Codepen here: https://codepen.io/gamerkonks/pen/NWaPNQM
Thanks.
from re-flex.
seems over complicated to me, why don't you add an overlay div on top of the reflex container and use pointer-events: none
on it so it doesn't block user interaction?
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.