Project

General

Profile

Actions

Feature #912

open

scrollTo, incorrect documention or implementation doesn't match documentation

Added by Anonymous over 12 years ago. Updated over 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
07/21/2011
Due date:
% Done:

0%

Estimated time:

Description

ScrollTo functionality doesn't adhere to the behavior defined in the documentation

The functionality is explained as:

void Wt::WTableView::scrollTo ( const WModelIndex & index,

ScrollHint hint = EnsureVisible

) [virtual]

Scrolls the view to an item.

Scrolls the view to ensure that the item which represents the provided index is visible. A hint may indicate how the item should appear in the viewport (if possible).

But when you examine the implementation, for example WTableView::scrollTo, you see that the javascript is:

s << "jQuery.data(" << jsRef() << ", 'obj').scrollTo(--1, "

<< rowY << "," << hint << ");";

which doesn't scroll to the correct column position, which means if that column in the table isn't visible, the item won't be visible, which is not what the behavior is specified in the documentation, i.e. the item (table cell) will be made visible.

Actions #1

Updated by Koen Deforche over 12 years ago

Hey,

Indeed, scrolling to the right column has not yet been implemented. I've added it as a note. And moved this to a feature request.

Regards,

koen

Actions #2

Updated by Koen Deforche over 12 years ago

  • Tracker changed from Bug to Feature
Actions

Also available in: Atom PDF