Add back layout context for toolbar popup

Removed when removing search.
This commit is contained in:
Campbell Barton 2018-11-12 11:56:13 +11:00
parent 423668765a
commit 89786d4e30
1 changed files with 1 additions and 0 deletions

View File

@ -2427,6 +2427,7 @@ class WM_OT_toolbar(Operator):
def draw_menu(popover, context):
layout = popover.layout
layout.operator_context = 'INVOKE_REGION_WIN'
cls.draw_cls(layout, context, detect_layout=False, scale_y=1.0)
wm.popover(draw_menu, ui_units_x=8, keymap=keymap)