From 8345d7559d48f9ac304704d77744db0769e84920 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 15 Jun 2010 11:15:15 +0000 Subject: [PATCH] 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. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37149 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/interface/Menu.cpp b/src/kits/interface/Menu.cpp index 78ed0a7b55..e4e42695f0 100644 --- a/src/kits/interface/Menu.cpp +++ b/src/kits/interface/Menu.cpp @@ -229,7 +229,7 @@ BMenu::BMenu(const char* name, menu_layout layout) 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),