Page MenuHome

Scrollbars never get too small to grab
ClosedPublic

Authored by Eitan Traurig (EitanSomething) on Jun 3 2019, 4:47 PM.

Details

Diff Detail

Repository
rB Blender

Event Timeline

Please do not hardcode the 50 in so many places. Just use a define like V2D_MIN_SCROLLER_SIZE.

Jacques Lucke (JacquesLucke) requested changes to this revision.Jun 3 2019, 5:00 PM
This revision now requires changes to proceed.Jun 3 2019, 5:00 PM
William Reynish (billreynish) requested changes to this revision.Jun 3 2019, 5:06 PM

This doesn't take UI scale into account

Also you forgot to actually use the V2D_MIN_SCROLLER_SIZE define now.

William Reynish (billreynish) requested changes to this revision.EditedJun 3 2019, 5:26 PM

At least here, the minimum scrollbar size is now HUGE:

50 * widget_scale is actually massive. Should be 50 * ui_scale I think

This revision now requires changes to proceed.Jun 3 2019, 5:26 PM
source/blender/editors/include/UI_view2d.h
73

Isn't it U.ui_scale and not widget_scale?

Update:

1:No longer hard coded
2:Scale when resolution scale not default

source/blender/editors/include/UI_view2d.h
73

Use UI_DPI_FAC instead of U.ui_scale.

Eitan Traurig (EitanSomething) marked an inline comment as done.

Update

1:Use UI_DPI_FAC instead of U.ui_scale

This seems to work well now.

This revision is now accepted and ready to land.Jun 3 2019, 6:09 PM
This revision was automatically updated to reflect the committed changes.