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:
authorJulian Eisel <eiseljulian@gmail.com>2018-10-31 01:54:25 +0300
committerJulian Eisel <eiseljulian@gmail.com>2018-10-31 02:52:07 +0300
commit0bc427f5c359f081ccd97a7266566c243b910919 (patch)
treea3ffcbb33be6d4d1641ce1311438096f624eb95a /source/blender/editors/space_buttons
parent4e23c69bfa6d835e270cb1098c03b3adfb4c9d9c (diff)
UI: Don't show scrollbar in Properties tab-bar
Addresses feedback from D3840.
Diffstat (limited to 'source/blender/editors/space_buttons')
-rw-r--r--source/blender/editors/space_buttons/space_buttons.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c
index 0e52b8ad320..6f33a2c84c6 100644
--- a/source/blender/editors/space_buttons/space_buttons.c
+++ b/source/blender/editors/space_buttons/space_buttons.c
@@ -430,7 +430,10 @@ static void buttons_navigation_bar_region_draw(const bContext *C, ARegion *ar)
for (PanelType *pt = ar->type->paneltypes.first; pt; pt = pt->next) {
pt->flag |= PNL_LAYOUT_VERT_BAR;
}
- ED_region_panels(C, ar);
+
+ ED_region_panels_layout(C, ar);
+ ar->v2d.scroll &= ~V2D_SCROLL_VERTICAL; /* ED_region_panels_layout adds vertical scrollbars, we don't want them. */
+ ED_region_panels_draw(C, ar);
}
/* draw a certain button set only if properties area is currently