Set the ToolButton to show the message when the click is received in any part of the widget.

This commit is contained in:
barrett 2013-01-04 16:53:37 +00:00
parent 6572adb23b
commit a56a343cd0

View File

@ -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);