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-01-14 17:01:51 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-14 17:20:31 +0300
commited843774a8b71c426ce8d800abaa4705df0ea28f (patch)
tree877d5d9a201bda4be58dd0cec124bd78efbe504a /source/blender
parentb5b6555768a34c2a08942575f232523470d2c7d0 (diff)
UI: fix horizontal scrollbar overlapping last item.
Differential Revision: https://developer.blender.org/D4202
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index 97c5c1db4cb..9bdbcf6ed4e 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -2164,6 +2164,9 @@ void draw_outliner(const bContext *C)
/* get extents of data */
outliner_height(soops, &soops->tree, &sizey);
+ /* extend size to allow for horizontal scrollbar */
+ sizey += V2D_SCROLL_HEIGHT;
+
if (soops->outlinevis == SO_DATA_API) {
/* RNA has two columns:
* - column 1 is (max_width + OL_RNA_COL_SPACEX) or