[haiku-commits] Re: r40306 - haiku/trunk/src/kits/interface

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 31 Jan 2011 09:27:44 +0100

Am 30.01.2011 23:26, schrieb Ryan Leavengood:
On Friday, January 28, 2011, John Scipione<jscipione@xxxxxxxxx>  wrote:

Make the resulting BPopUpMenu always pop up on an edge of the resulting menu.
If there is not enough room for the menu to the right of the BPoint then draw 
the
menu to the left, if there is not enough room for the menu below the BPoint, 
move
the menu up. That way, the mouse will never appear on top of the menu and so
you can never accidentally select an item without moving the mouse.

I tested on Linux with GTK in Chrome and that is indeed how it works
and I think it may be better indeed. I know we try not to just copy
other OSes willy nilly but this may be a case where their behavior is
better and our behavior (and even that from BeOS) is just not as good.

Any other comments?

I know I wrote a tome before but as I said I would like to finally get
this right.

Since the menu is forced to move elsewhere anyway, it might as well move in a different and arguably more consistent way. I like the proposal.

Best regards,
-Stephan


Other related posts: