Fix T64076: color ramp overlaps scrollbar

Differential Revision: https://developer.blender.org/D4831
This commit is contained in:
Harley Acheson 2019-05-09 19:27:33 +02:00 committed by Brecht Van Lommel
parent 60ca2fe338
commit 98b67d30ff
Notes: blender-bot 2023-02-14 05:22:18 +01:00
Referenced by issue #64076, Gradient color stops overlap with scrollbars
1 changed files with 2 additions and 2 deletions

View File

@ -1599,8 +1599,8 @@ void ui_draw_but_COLORBAND(uiBut *but, const uiWidgetColors *UNUSED(wcol), const
return;
}
float x1 = rect->xmin;
float sizex = rect->xmax - x1;
float x1 = rect->xmin + (0.25f * UI_UNIT_X);
float sizex = rect->xmax - x1 - (0.30f * UI_UNIT_X);
float sizey = BLI_rcti_size_y(rect);
float sizey_solid = sizey * 0.25f;
float y1 = rect->ymin;