Comments (7)
Glad to hear! I'll update the documentation to make the differences / usage of minWidth and width more clear.
from fixed-data-table-2.
Hey @dcoales can you try switching minWidth to width and see if that fixes things.
This example seems to do things that way. Definitely not intuitive that it works that way...
from fixed-data-table-2.
This was the answer. Many thanks.
Cheers
David
On Thu, 30 Jun 2016, 02:39 Chris Jordan, [email protected] wrote:
Hey @dcoales https://github.com/dcoales can you try switching minWidth
to width and see if that fixes things.
This example
http://schrodinger.github.io/fixed-data-table-2/example-flexgrow.html
seems to do things that way. Definitely not intuitive that it works that
way...—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#23 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ASvbdz-tRncTg2MZLrMAY0JrswzYlwfkks5qQx5ugaJpZM4JBLCb
.
from fixed-data-table-2.
I haven't been able to get the "FlexGrow" property to work. I have literally copied and pasted the code from the example and am using my own data to populate the table, but my table doesn't resize at all. Has anyone else had a tough time with this?
from fixed-data-table-2.
I haven't heard of anything, but can look if you can put up a jsfiddle that repros the issue.
One common point of confusion is expecting the grid to grow to fill it's container which is not supported. That can be added with an HOC like react-dimensions though. Some discussion is here: facebookarchive/fixed-data-table#62 (comment)
from fixed-data-table-2.
I found a good work around for this problem! Well.. good is subjective.
But it is something like this... take it or leave it.
componentWillMount() { this._updateDimensions(); }
componentDidMount() { window.addEventListener("resize", this._updateDimensions); }
componentWillUnmount() { window.removeEventListener("resize", this._updateDimensions); }
_updateDimensions(){this.setState({tableWidth: ($(window).width()+100), tableHeight: ($(window).height()-150)}); }
Set the height and width props of your table to this.state.tableHeight and this.state.tableWidth. Adjust the dimensions as necessary for your layout. It takes a second to resize so it's DEFINITELY NOT optimal. But it gets the job done for our Beta app we're building.
Cheers!
from fixed-data-table-2.
Closing this since theres no actionable follow up
from fixed-data-table-2.
Related Issues (20)
- Does it provide infinite scroll? HOT 1
- Resizable rows? HOT 5
- Need drop and play example HOT 3
- Sometimes when scrolling through table rows, I receive warning: Failed prop type: The prop `index` is marked as required in `FixedDataTableRowImpl`, but its value is `null`. HOT 4
- Check the column/cell visibility HOT 9
- Z-index 1 set on column header causes header to overlap other elements HOT 6
- Vertical scroll bar when we have many columns HOT 2
- Cannot read properties of null (reading 'onWheel') HOT 6
- Cannot read properties of null (reading 'setRoot') HOT 4
- React 18 question HOT 4
- "Global is not defined" in React Vite app HOT 2
- Error when refreshing data in table with "smaller" data HOT 5
- Is there a way to implement multi-level headers in Fixed Data Table 2 HOT 3
- When using variable row heights, setting `scrollTop` doesn't work well. Fix proposed HOT 4
- Resize line not shown when "maxHeight" is set. HOT 2
- Column resize doesn't properly work on mobile HOT 11
- Resize vertical bar public in header_ FixedDataTableColumnResizerLine_ Main positioning is not accurate HOT 4
- "site-dev-server" script doesn't work after upgrading to npm 9.8.0 HOT 4
- Scroll to an exact position when clicking the scrollbar track doesn't work in case of variable row heights and isVerticalScrollExact = true HOT 3
- Help with keeping scrollLeft property in components in each row when scrolling vertically. HOT 7
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 fixed-data-table-2.