Community
Participate
Working Groups
Created attachment 156081 [details] Self running snip to demonstrate problems Hi, I just stumbled over two problems with the ScrollBars in Table with style VIRTUAL. Both happen only in specific browsers but are always reproducable. The first problem is IE specific (7 and 8): If I change the itemCount of a table which is not displayed at the moment (e.g. in another CTabFolder) the ScrollBar is not updated, allthough scrolling with the mouse wheel still reveals the newly added items. The second problem is FF specific (3 and 3.5): If I change itemCount and selection in a table which is not displayed and didn't have a scrollbar before, the showSelection method reveals the item, but the ScrollBar thumb is still in the top position. I attached a small program which shows the problem. For the IE problem switch to table 1, then enter 0 as table number, a larger item count than currently in that table and press the IE button. For the second problem reduce item count so that no scrollbars are displayed and change to other table. Then enter the unselected table number, item selection and item count (both large enough to urge the table to scroll) and press the FF button. I did a little testing around the problem and it seems that the problem lies somewhere in JavaScript caching of ScrollBar values. There are some code lines in the snip which solve the problem by executing JS code. Maybe that helps finding a solution. Cheers, Michael.
Thanks Michael, for providing the java script code. The FF issue is solved with your lines of code and it helps to create a fix. However, the same lines of code does not work for me for the IE issue (tested on Windows 7 with IE8). Needs more investigation for a proper fix for both problems.
Created attachment 157307 [details] fix Solves both problems. qx.js needs to be rebuild.
Applied patch to CVS HEAD