Project

General

Profile

Actions

Bug #8213

open

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

Added by Andreas Frolov about 3 years ago. Updated about 3 years 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
Actions #1

Updated by Korneel Dumon about 3 years 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.

Actions #2

Updated by Andreas Frolov about 3 years 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.

Actions

Also available in: Atom PDF