Project

General

Profile

Actions

Bug #3200

closed

WTableView scrollTo can fail with "Loading" under some conditions when model has been updated

Added by Bruce Toll almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
05/24/2014
Due date:
% Done:

0%

Estimated time:

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

Actions #1

Updated by Koen Deforche almost 10 years ago

  • Status changed from New to InProgress
  • Assignee set to Koen Deforche
  • Target version set to 3.3.3
Actions #2

Updated by Koen Deforche almost 10 years ago

  • Status changed from InProgress to Resolved

Hey Bruce,

Nice debugging. Applied!

Regards,

koen

Actions #3

Updated by Koen Deforche almost 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF