UI: Nudge Curve Editor Away from Scrollbar

This patch increases left and right padding of the Curve Editor to avoid scrollbars

Reviewed by Brecht Van Lommel
This commit is contained in:
2019-05-11 10:48:05 -07:00
parent 0e09075e39
commit 83d35c25d0
5 changed files with 7 additions and 4 deletions

View File

@@ -4669,6 +4669,9 @@ void ui_draw_but(const bContext *C, ARegion *ar, uiStyle *style, uiBut *but, rct
break;
case UI_BTYPE_CURVE:
/* do not draw right to edge of rect */
rect->xmin += (0.2f * UI_UNIT_X);
rect->xmax -= (0.2f * UI_UNIT_X);
ui_draw_but_CURVE(ar, but, &tui->wcol_regular, rect);
break;