Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 299620 - [Table] ScrollBar not updated on invisible, VIRTUAL table
Summary: [Table] ScrollBar not updated on invisible, VIRTUAL table
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.3 M5   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-14 06:02 EST by Michael Haendel CLA
Modified: 2010-01-27 05:16 EST (History)
0 users

See Also:


Attachments
Self running snip to demonstrate problems (5.88 KB, text/plain)
2010-01-14 06:02 EST, Michael Haendel CLA
no flags Details
fix (1.35 KB, patch)
2010-01-26 12:38 EST, Tim Buschtoens CLA
ruediger.herrmann: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Haendel CLA 2010-01-14 06:02:49 EST
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.
Comment 1 Ivan Furnadjiev CLA 2010-01-22 03:40:27 EST
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.
Comment 2 Tim Buschtoens CLA 2010-01-26 12:38:19 EST
Created attachment 157307 [details]
fix

Solves both problems. qx.js needs to be rebuild.
Comment 3 Rüdiger Herrmann CLA 2010-01-27 05:16:57 EST
Applied patch to CVS HEAD