-
Notifications
You must be signed in to change notification settings - Fork 754
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
Some issues with scroll widget #906
Comments
Hi @Francks11! Thanks for the extensive descriptions and screenshots. I noticed that all the demos are pointing to the scroller widget from the last version. Try changing the link to the scroller widget to this: https://rawgit.com/Mottie/tablesorter/master/js/widgets/widget-scroller.js This link points to the latest scroller widget code in the master branch which should have fixed some of the above reported issues (I hope). |
Issue 1 Replaced widget scroller. But it does not fix the bug. Issue 2 Replaced widget scroller. But it does not fix the bug. Issue 3 What is the method to called to refresh only the header? Issue 4 Replaced widget scroller. But it does not fix the bug. Issue 5 Replaced widget scroller. But it does not fix the bug. Issue 6 Replaced widget scroller. But it does not fix the bug. Issue 7 Replaced widget scroller. But it does not fix the bug. The replacement of widget scroller file has no effect... Can you help me? |
Ok, I'll take a look. For issue 3, trigger a window resize (I'll look to fix this in the code so it works on update properly) (demo) $(window).resize(); |
Mottie thanks for your help for issue 3. Have you had time to see for other issues? Thanks. |
Sorry, there is too much to do with the scroller widget and I want to get the next version out today. |
Okay. For me, in order, the following issues 4, 1, 2 are blocking and I can't use scroller widget without fixing bugs. I'll see if I can make my contribution to fix bugs because it's very important to me. |
I resolve issue 7. The bubbles of Qtip2 doesn't appear because I have attached event on table sorter thead which is hidden with scroller widget. I use this code after table sorter initialisation to do Qtip works :
You can see a demo here for information : http://jsfiddle.net/oqfq47fc/30/ I now look to fix issue 4, 1, 2 which are very blocking. :-) |
To be honest, all the columns line up for me. I am not seeing any issues with Chrome or Firefox. In IE, the header is the same width as the body so there is a scrollbar width of extra scrolling that occurs and that needs to be fixed. All the columns do line up though. I know you said "The problem appears with all browsers" in the original question... which one did that screen shot come from? Maybe add some css to set the input widths as a percentage, that would ensure that the inputs in the tbody don't distort the table cells. |
The issue is when using inputs, but it's simple solution of using css to set the input width to 100% and then control the col width with min-width (demo). .tablesorter thead th {
min-width: 200px;
}
.tablesorter-header input {
width: 100%;
} |
Issue 5 is css, you see it to do cell-spacing, use cell border with a color, right now it's transparent, tell it to use solid white and that will be fixed. |
OK thanks for your help. I will try all tomorow and I get you feedback. :-) |
here is Issue 5 working |
Thanks :-). And for issue 4, I think it is input css height issue? (Issue of row alignment on firefox and lE)? |
@TheSin- , there are line alignment issues on Internet Explorer (9-10-11) with your demo : http://jsfiddle.net/856bzzeL/264/ Scroll vertically or horizontally, resize and see : Scroll again, line is correct align. I think that there is a refresh problem, only on Internet Explorer Other issue on Internet Explorer 9 : The horizontal scrollbar is hidden by fixed columns Question : |
I thought yesterday that the fields were responsible of alignment issue. Today, I have notice that the responsible is colspan. Scroller widget doesn't like that header first row contains colspan columns, like you can see here with your demo : http://jsfiddle.net/856bzzeL/308/ If I reverse colspan and set to row 2, no alignment issue : http://jsfiddle.net/856bzzeL/309/ Thanks |
I tested a few cases and still encounter some bugs, especially with internet explorer 9,10,11 (problem alignment line fixed column). The scroll widget is also slower than before the update... I detail as soon as possible with examples. |
I give my feedback regarding the latest changes. Columns alignment issues (Issue 1, 2 ):Resolved for Firefox, Chrome, Internet Explorer >= 10. Row alignment issues (Issue 4) :Resolved for Firefox, Chrome. You can see with my demo here : http://jsfiddle.net/oqfq47fc/52/ Issue 5, 6 :Resolved for all browser. NEW ISSUES :Issue 1 Columns are not well align if fixed columns are not used : http://jsfiddle.net/oqfq47fc/53/ If I used fixed columns with same code, its works : http://jsfiddle.net/oqfq47fc/54/ I can reproduce it with your demo : http://jsfiddle.net/856bzzeL/457/ Issue 2 When we use colspan in header, the columns are not well align : http://jsfiddle.net/856bzzeL/459/ I have the need to have colspan in header columns. Issue 3 If I use colspan in body, row style is stopped in fixed columns, and not apply to the rest of line : http://jsfiddle.net/oqfq47fc/54/ Issue 4 Since last change, widget scroller is slower... If I have time, I look into widget scroller code, to determine which code is slow. I use it for from 500 to 1000 rows. Question : How to prevent vertical scrollbar jump to header when browser is resized? Or when data is updated? That's all for now :-) |
Ok, I'll look into the alignment issues. I think the IE row height issue is because the The question about resizing and the table jumping to the header can be solved by setting the |
colspan is not supported, after a long discussion we thought it would be very odd to start with collapse support in scroller and the rest of TS doesn't even support it yet. Please refrain from using colspan, and do not file bug reports due to it. |
Well, you can use |
And in header? It can be useful and does not prevent table sort? And other bugs? |
What is an info only tbody? Can you provide me a demo please? Thanks :-) |
really? then how do I break it? lets say cols 1 and 2 are fixed, and you have row 1 as colspan 10, where do I break it in half? How do it? where does the data go? how do I split it? I think maybe it's more of a design issue, try caption for that info instead, of a title if you are using scroller widget since it won't scroll off the page etc etc. Heck even tooltips might work depending on the info you are trying to tell the user. Either way collapse is not support and it does affect it in any cell. |
Headers do allow The demo you seek in the the documentation, listed under "Sorting with Multiple Tbodies". |
but if it's in a scroller and you do a fixed col that breaks a span, it will likely break specially in IE. I've HIGHLY recommend against it. |
If I use colspan on header, I set colspan only for not fixed columns. Why it does not work and why its not possible? |
Same question for body? |
this is a pretty easy fix, I'm working on it, it will only affect no fixed cols. |
TheSin- will yell at me for sharing this, but I actually need to modify what I was saying before.... Say you have a table with 10 columns, and you have a info-only
<tbody class="tablesorter-infoOnly">
<tr>
<td colspan="2">COLSPAN</td>
<!-- add extra hidden td because the fixed column set to 2
will hide 2 cells; this hidden cell is a placeholder -->
<td style="display: none"></td>
<!-- this cell will show up on the right -->
<td colspan="8"> </td>
</tr>
</tbody> Ok, @TheSin-, this is the last time I'll mention |
Thanks a lot @Mottie :-). Have you try with Internet Explorer? I see line alignement issue... :-( oh Internet Explorer... Add multiple tbody info only to better see the alignment issue : http://jsfiddle.net/1a5yu8yq/25/ Another small effort and it is good :-) |
Hottie just for notes this is the same issue as firefox, I'm willing to bet the div it showing up even though the scrollbars aren't. again this is just for notes since I can't test this. |
Mottie you Hottie, or at least my computer things so ;) |
Your computer needs glasses 😛 |
Hi @Mottie, I have already try scroller_jumpToHeader or scroller_upAfterSort and it doesn't work for me. You can try here : http://jsfiddle.net/oqfq47fc/57/ If I resize window, the scrollbar go to top... These options don't work with fixed column. I have try with your demo and I have the same issue : http://jsfiddle.net/856bzzeL/465/ If I remove fixed columns, its works. There is a bug. I saw you did commit last night. Normal that issue 1 is not resolved? http://jsfiddle.net/oqfq47fc/53/ Normal that I already have alignment issue with your colspan example with Internet Explorer? http://jsfiddle.net/1a5yu8yq/27/ . Not resolved with last commit? What is fix with your last commit and what is not fix? I mention "colspan" for header lol. Have you a workaround to use colspan in header? :-) |
The IE issue has not been resolved. I name my commits as to what they fix. If you don't see a commit that says something like fixes IE issue, then it's not fixed. |
You referenced your commit for this issue 15 hours ago. That's why I ask this question. And on other commit I saw : fix older IE :-) |
I referenced this issue because it has like 8 or 9 issues listed in it; too many, I really just stopped reading them. |
I agree with you, it becomes a bit messy... It is difficult to know what is resolved, what is not resolved... I close this issue and I create individual issue for issue which is not resolved. Thanks. |
@Mottie |
Hi @ilakkuvan! Are you seeing the same issue on this demo page? Everything is aligned for me, maybe you're using an older version of the widget? |
@Mottie |
Please modify this demo to demonstrate the problem. |
I will check now also same issue |
Thanks a lot @Mottie |
Working fine @Mottie |
@Mottie How to implement RTL .PLease help me |
Hi @ilakkuvan! Two things are required (demo)
I will make this more clear in the documentation. |
@Mottie I am using 25 column and 500 rows |
@ilakkuvan I wouldn't recommend using the scroller widget then; the stickyHeaders widget should work just as well. |
@hi friends |
Hello @Mottie,
I encounter some issues with scroller widget... It is difficult do it works with all browsers like Internet Explorer > 9, Firefox, Chrome without alignement issues and without any bugs...
Issue n°1
When I add inputs in header, the head columns are not well align with body columns...
You can see a demo here : http://jsfiddle.net/Francks11/oqfq47fc/1/
The problem appears with all browsers.
Issue n°2
If column data is wrap in several lines, the head columns are not well align with body columns... I have the need that data is wrapped.
You can see a demo here : http://jsfiddle.net/Francks11/oqfq47fc/3/
The problem appears with all browsers.
Issue n°3
If I update a cell in table and data which grow the cell, the head columns are not well align with body columns...
You can see a demo here http://jsfiddle.net/oqfq47fc/4/
The problem appears with all browsers.
I suppose it is necessary to call a method to refresh header, but which? I have look at documentation and the list of possible methods but which methods is most appropriate?
refreshWidgets Refresh the currently applied widgets. Depending on the options, it will completely remove all widgets, then re-initialize the current widgets or just remove all non-current widgets (v2.4; v2.19.0).
updateAll Update a column of cells (thead and tbody) (v2.8; v2.19.0).
updateCell Update a table cell in the tablesorter data (v2.19.0).
I have test updateAll method but its works only first time and next time, the rows of tbody disappears...
I have searched through the documentation, but I found not what I need...
Issue n°4
When I add the fixed columns to previous example demo, it works with Chrome but not with Firefox and IE.
You can find demo here : http://jsfiddle.net/oqfq47fc/5/
On chrome : (OK)
On firefox :
On Internet Explorer :
Issue 5
When we move horizontal scrollbar to right, we can see the moved contents in table border :
You can find demo here : http://jsfiddle.net/oqfq47fc/5/
Issue 6
When we go on the bottom of table, there is a slight alignment issue :
Issue 7
I use qTip2 (http://qtip2.com) for tooltip.
Qtip2 works good with table sorter, except if widget scroller is used.
You can find a demo here, without scroller widget : http://jsfiddle.net/oqfq47fc/6/
You can find a demo here, with scroll widget : http://jsfiddle.net/oqfq47fc/7/
Can you help me?
I have looked in the documentation, but forgive me if it's written somewhere and I have not seen.
Thanks.
The text was updated successfully, but these errors were encountered: