Feature #912
openscrollTo, incorrect documention or implementation doesn't match documentation
0%
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.
Updated by Koen Deforche almost 13 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
Updated by Koen Deforche almost 13 years ago
- Tracker changed from Bug to Feature