Page MenuHome

Fix 'outliner_scroll_view()' not reaching wanted element
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Nov 10 2020, 1:54 PM.

Details

Summary

Relevant since rB6bc6d016c5e7

Scrolling to an item after opening relevant parents can go wrong if said
parent e.g. the last in the list [as in: then the Outliner does not
scroll down all the way]
It stems from the fact that 'region->v2d.tot.ymin' is not up-to-date in
outliner_scroll_view after outliner_show_active opens up parents, 'tot'
will only update on a redraw.

Now calculate the trees height on the fly using
'outliner_tree_dimensions()'.

ref D9521
ref T82553

Diff Detail

Repository
rB Blender

Event Timeline

Philipp Oeser (lichtwerk) requested review of this revision.Nov 10 2020, 1:54 PM
Philipp Oeser (lichtwerk) created this revision.
This revision is now accepted and ready to land.Nov 10 2020, 6:25 PM