Page MenuHome

FIX T68677 - Graph editor zoom to selected ignores scrollbar occlusion
ClosedPublic

Authored by Aurel W (aurel) on Nov 26 2019, 2:48 PM.

Details

Summary

Just a little annoyance, but the zoom to selected simply doesn't work with the new scrollbar. Just adding this extra padding seems to work nice. Also implemented a more complex padding behavior, but after testing I found it just unnecessary and I reverted my patch to this simple solution.

Diff Detail

Event Timeline

Well, scrollber -> scrollbar

Sybren A. Stüvel (sybren) added 1 blocking reviewer(s): Julian Eisel (Severin).

LGTM apart from the note.

source/blender/editors/space_graph/graph_edit.c
298–303

Initialising to 0 doesn't make much sense to me here. Why not default to V2D_SCROLL_HANDLE_HEIGHT instead?

Julian Eisel (Severin) accepted this revision.EditedJan 21 2020, 2:21 PM

Fix seems fine, thanks! I'll push a slightly different version which does the same in effect.

This revision is now accepted and ready to land.Jan 21 2020, 2:21 PM