From 98b67d30ffdf489912bbd325d5bc7f30da37efdd Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Thu, 9 May 2019 19:27:33 +0200 Subject: [PATCH] Fix T64076: color ramp overlaps scrollbar Differential Revision: https://developer.blender.org/D4831 --- source/blender/editors/interface/interface_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/interface/interface_draw.c b/source/blender/editors/interface/interface_draw.c index 640d5127446..655c0b1775c 100644 --- a/source/blender/editors/interface/interface_draw.c +++ b/source/blender/editors/interface/interface_draw.c @@ -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;