fix for displaying context menu in inplace gadget