-
Notifications
You must be signed in to change notification settings - Fork 782
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
discussion for v2.0.0 release #331
Comments
btw, in |
HI @pgiani, you catch the legacy css file, please make sure you use the newest css file( |
Sorry my bad, work great with the new CSS |
Hi guys, it happens in Chrome(49) and IE (11) |
HI @garciasa, The problem is like you said, and the solution is you need to do a after tab mounted, please call afterTabChanged() {
this.refs.table1.forceUpdate();
}
//...
render() {
return (
<BootstrapTable ref="table1" data={products}>
<TableHeaderColumn dataField="id" isKey={true} >Product ID</TableHeaderColumn>
//...
</BootstrapTable>
);
} |
Sorry man!!! i didn't read your workaround here https://github.com/AllenFang/react-bootstrap-table/tree/master/examples/js/others/table-in-tabs.js |
@garciasa, that's ok :) feel free to give any feedback after you upgrade to the |
My problem is that my bootstraptable is in a child component, refs, is not directly accesible!!!! I need to find the way to access to the bootstraptable child... |
could you please show your example codes ? I think it should be work, how about |
Yes, that is, i was doing my references wrong!!! Thanks again.. |
Hi, I have updated to use v2.0.0 and included the css |
@bindiababy, is the table in the tabs? or could you please give your example ? |
@AllenFang the table is not in tabs , but added into an Accordion , so I would still need a force update? I was not sure where to do that though, since I am not handling the onSelect. |
@bindiababy, yes, you need to do a fore update when tab load at first time. Because Accordion is same as tab, there're some div is hidden |
@AllenFang Thanks that works now |
Hello there Allen, I'm having a hard time displaying the table and content properly on version 2.0.0. The issue is in line 7 of react-bootstrap-table-all.min.css (Rule: table-layout:fixed). If I remove "fixed" or simply change it for "auto" the table displays perfectly as it should, even on mobile devices, but the header breaks and gets misaligned just like before on the previous version. Here are two examples with fixed and auto table-layout: *table-layout:fixed: (Displays fine) * table-layout: auto: Misalignment issue with table-layout auto : Is there a way to fix this issue? I would deeply appreciate any help. Thanks in advance! |
@geekbosszhang, if your upgrade from older version, make sure your application use the newest |
@dannysindra, great job, would you please share what's you did and give some feedback :) |
@AllenFang Nothing much, really. I have another CSS file which override the table-layout rules. I switched it back to
and then all table heading aligned with the body. Works on Firefox and Safari. Thanks a lot for this awesome module! |
@dannysindra, thanks your feedback. :) |
Hi, can you please assist me on this ? Thanks. |
@lioralt, ok, You should let me know the following informations:
There's a known unalign issues when using latest chrome. Thanks :) |
@lioralt you can also try to set it with css just like what I did. :) |
@AllenFang , I'm using chrome version 52.0.2743.116 m Thanks a lot. |
@lioralt, you can upgrade |
@AllenFang I've got same behavior on Chrome and Firefox. Works well on IE 11 and Edge. Click handler |
The column unalign issue also occurs when in print preview from the browser. I using v2.5.6 in Chrome 54 |
I am using react-bootstrap-table": "^2.11.1, still occurs on this version, i am using chrome. |
If you guy got a unalign issue, please open another issue and I'll handle it, thank you |
I was on v 2.11.2 and had an issue with the alignment of the column headers and body data. It seems like if in a particular column, the body cell's text length is longer than the header column's text length, then the table becomes misaligned. I downgraded to version 2.9.2 and the issue was resolved for me. Version 2.10.0 and onward seems to have this issue. |
@rodgersk410, did you have a screenshot? |
Hi Allen, Thanks for the great work! Note also that the filter fields show up under each other in my case, rather than side by side as in your examples. Any advice on that one is welcome too, although I appreciate that this is not the point of this thread. All the best, |
@kevinrue, I think you forgot to add the css of |
@AllenFang : Flawless! Thanks so much for the lighting-fast spot-on answer ! |
Hey @AllenFang , I couldn't find a way to keep the horizontal scrollbar visible everywhere without having to scroll to the bottom of the table to find it. Let's say my table has a max-height of Do you think it's a feature you would add soon? |
@vincentpageau, There is one restriction when you want to make a large column table with horizontal scrollbar: You need set the width on some column to make the total width of table exceed the width of outer. |
@AllenFang Worked like a charm! I was also wondering if react-bootstrap was supporting window resizing. I couldn't find docs for when I want to resize only the height of my table when I resize my window. |
@vincentpageau, sorry, we dont support the resize currently :P |
@AllenFang Oh ok. |
I dont think so in near future, but I can try to support it in the future. There's a PR already support the resize column width, but need more test, thanks |
@AllenFang Mind if I ask with all the alignment problems above, what was the motivation to create two tables instead of one? Just curious, thanks.. I am having this problem too... |
@tzarger, it's a loong story ;P The most issue is support the horizon & vertical scroll on bootstrap table. |
How to make the table container horizontal scroll without window bottom scroll in react-bootstrap-table. |
#321 #300 #285 #267 #254 #227 #237 #268
I thinks these issues will be solved in
v2.0.0
. The released day will in the 2016/03/13 or 03/14.The main patch is
react-bootstrap
)btw, for the unalign column in tabs, please check this example. This example is a workaround solution, because I cant actually got the width of column which in hidden tabs(I found a lots of solutions, but did not worked). In addition, if tab do not render hidden tab, will solve this issues, check this thread
if you have any issues or feedback _is related with these topic_, please tell me in this thread.
Sorry for a long time to wait this patch.
when upgrade, remember to import(use) newest css file, dont reference legacy one
The text was updated successfully, but these errors were encountered: