Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarley Acheson <harley>2019-05-09 20:27:33 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-09 20:55:10 +0300
commit98b67d30ffdf489912bbd325d5bc7f30da37efdd (patch)
tree4fa820bf251f057c9c3f477df2f883cee184636e /source/blender/editors/interface/interface_draw.c
parent60ca2fe3385d4c8b51d54ca05012d5741b5c1c79 (diff)
Fix T64076: color ramp overlaps scrollbar
Differential Revision: https://developer.blender.org/D4831
Diffstat (limited to 'source/blender/editors/interface/interface_draw.c')
-rw-r--r--source/blender/editors/interface/interface_draw.c4
1 files 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;