Project

General

Profile

Bug #8213

The result of the function WTreeView::scrollTo is wrong if any parent of the element is collapsed.

Added by Andreas Frolov 4 months ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
03/17/2021
Due date:
% Done:

0%

Estimated time:

Description

Hello,

The function must expand all parent of the element if the element is to become visible. The possible solution is attached.


Files

WTreeView.patch (313 Bytes) WTreeView.patch Andreas Frolov, 03/17/2021 01:35 PM
#1

Updated by Korneel Dumon 4 months ago

I don't know if this function should automatically expand, perhaps in this case it should scroll to the parent of the item. Is this what you see?
It seems to me you can implement what you want in application code.

#2

Updated by Andreas Frolov 4 months ago

The documentation of WTreeView::scrollTo says:
"Scrolls the view to ensure that the item which represents the provided index is visible ".

But current implementation doesn't always do that. For me it's a bug.

Also available in: Atom PDF