[haiku-commits] r37149 - haiku/trunk/src/kits/interface

  • From: stefano.ceccherini@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 15 Jun 2010 13:15:15 +0200 (CEST)

Author: jackburton
Date: 2010-06-15 13:15:15 +0200 (Tue, 15 Jun 2010)
New Revision: 37149
Changeset: http://dev.haiku-os.org/changeset/37149/haiku
Ticket: http://dev.haiku-os.org/ticket/6159

Modified:
   haiku/trunk/src/kits/interface/Menu.cpp
Log:
Don't set the width and height of the view in the constructor,
otherwise some other calculation screws up later, and the menu frame ends up
to be offsetted by its height. Fixes ticket #6159.


Modified: haiku/trunk/src/kits/interface/Menu.cpp
===================================================================
--- haiku/trunk/src/kits/interface/Menu.cpp     2010-06-15 11:12:21 UTC (rev 
37148)
+++ haiku/trunk/src/kits/interface/Menu.cpp     2010-06-15 11:15:15 UTC (rev 
37149)
@@ -229,7 +229,7 @@
 
 BMenu::BMenu(const char* name, float width, float height)
        :
-       BView(BRect(0.0f, width, 0.0f, height), name, 0, B_WILL_DRAW),
+       BView(BRect(0.0f, 0.0f, 0.0f, 0.0f), name, 0, B_WILL_DRAW),
        fChosenItem(NULL),
        fSelected(NULL),
        fCachedMenuWindow(NULL),


Other related posts:

  • » [haiku-commits] r37149 - haiku/trunk/src/kits/interface - stefano . ceccherini