-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Tables not rendering correctly #84
Comments
Try wrapping the table itself in a wrapper with a set size and an overflow property. |
@AStoker Updated. I will take a look to the suggestion. |
@AStoker it works if i wrapp the table with a div like you said. So is not there a way to just scroll the tbody? |
It's related to this: #46 (comment) |
@AStoker so far I can go with that I believe. I will find some kind of work around for headers. Thanks. |
No problem. I'd like to leave this issue open as a reference to fix the behavior with tables, since it seems a bit strange to me. |
@martingust @AStoker please update this if you got some information regarding that improvement. Thanks a lot for helping. |
Any news on that bug? Simple table with bootstrap styling throw getBoundingClientRect error. I'm using aurelia-ui-virtualization@1.0.0-beta.3.0.2. Wrapping table like this:
Still not fix issue for me. |
For those who really like to use current version of virtual-repeat with tables, try bootstrap grid layout:
What else cost me o lot of time to figure out was oneTime binding in virtual-repeat. It's obviouse you can't use ${file.no & oneTime}. Is worth mentioning in docs you can't use oneTime in virtual-repeat block. |
Is there any solution for this bug? Got table structure error `getBoundingClientRect ' |
A fix is at #131, if anyone still using virtual table, please give it a check. |
I'm submitting a bug report
Library Version: 1.0.0-beta.3.0.1
Please tell us about your environment:
Operating System: Windows Server
Node Version: 5.0.0
NPM Version: 3.5.2
JSPM: 0.16.35
Browser: all
Language: ECMA6
Current behavior:
I created a basic table with hardcoded content. I specified the height on table and repeater item.
It works when scrolling down but its breaking when scrolling up.
<table id="testVirtual" class="virtual-repeater-wrapper"> <tr virtual-repeat.for="item of [1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4]" class="virtual-repeated-item"> <td>Test1</td> </tr> </table>
Demo: http://screencast.com/t/XQgHkORPjpbo
Expected/desired behavior:
Same behavior works when using divs instead of tables.
The text was updated successfully, but these errors were encountered: