Blender Git Commit Log

Git Commits -> Revision 7a02697

Revision 7a02697 by Bastien Montagne (master)
August 24, 2014, 08:22 (GMT)
Fix T41548: Menu pulldown button behaves incorrectly on click if menu shadow width is set to 0 in theme prefs.

This is more like a workaround actually, we use a fixed 'margin' for height in case of search menus,
instead of using shadow width (which gave the bug with low values, and insane margins with big ones).

Note root of the issue is that if 'top' margin is too small, the first entry of the search menu
gets activated before the 'opening' click is released. This means that button will get the
KM_RELEASE event, and immediately quit (see interface_handlers.c:7945, ui_handle_menu_button()).

Commit Details:

Full Hash: 7a026971dc3f9392278898cc28d7051f34e3dd6b
Parent Commit: 9541f75
Lines Changed: +3, -2

1 Modified Path:

/source/blender/editors/interface/interface_regions.c (+3, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021