Bug #3200
closedWTableView scrollTo can fail with "Loading" under some conditions when model has been updated
0%
Description
Under some circumstances, updating a WTableView's model and calling scrollTo can fail with the WTableView displaying "Loading". The attached test program can be used to drive the problem. It was tested with the latest github version of Wt, 3.3.2-rc1-69-g54837d1, using Debian Wheezy 7.5 x86_64 and boost 1.55 on the server. The clients tested were iceweasel 24.5.0 and chromium 34.0.1847.137 Debian 7.5 (268882) under Debian Wheezy and IE 11.0.9600.1707, Chrome 35.0.1916.114 m and FireFox 29.0.1 under Windows 7. The problem appears to be both browser and timing dependent, with Chrome/Chromium and IE failing more reliably.
A means to demonstrate the problem is to scroll towards the end of a WTableView, and then reduce the number of rows and scrollTo a valid row. It appears that the Wt DOM updates that reduce the container can result in a scroll event that is not handled correctly. This is the case demonstrated by the test program, but I'm not sure that it is the only case.
I've also attached a patch for your review which seems to help with the above browsers. It ignores scroll events while a scrollTo is being processed. This patch has only been lightly tested.
Files
Updated by Koen Deforche over 10 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
- Target version set to 3.3.3
Updated by Koen Deforche over 10 years ago
- Status changed from InProgress to Resolved
Hey Bruce,
Nice debugging. Applied!
Regards,
koen
Updated by Koen Deforche over 10 years ago
- Status changed from Resolved to Closed