From a56a343cd087419d6f1239f7c0639be38752a59b Mon Sep 17 00:00:00 2001 From: barrett Date: Fri, 4 Jan 2013 16:53:37 +0000 Subject: [PATCH] Set the ToolButton to show the message when the click is received in any part of the widget. --- libs/libinterface/ToolButton.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/libinterface/ToolButton.cpp b/libs/libinterface/ToolButton.cpp index b9a6e51..8d70a77 100644 --- a/libs/libinterface/ToolButton.cpp +++ b/libs/libinterface/ToolButton.cpp @@ -196,7 +196,10 @@ ToolButton::MouseDown(BPoint where) BRect rect(Bounds()); rect.left = rect.right - kPopUpMarkerRect; - if (fMenu && rect.Contains(where)) { + // NOTE the following code was disabled to allow the widget + // show the menu when the click is received in any part of the + // widget instead of the flap only. + if (fMenu /*&& rect.Contains(where)*/) { BPoint coords(rect.left + 2, rect.bottom + 1); ConvertToScreen(&coords);