Ticket #15269: 0001-Fix-BMenuBar-width.patch

File 0001-Fix-BMenuBar-width.patch, 943 bytes (added by X512, 5 years ago)

Patch

  • src/kits/interface/Menu.cpp

    From 5cad34221f45bd8e5b178086fbf0f6d87bd9b1e3 Mon Sep 17 00:00:00 2001
    From: X512 <danger_mail@list.ru>
    Date: Tue, 20 Aug 2019 20:25:48 +0900
    Subject: [PATCH 1/1] Fix BMenuBar width
    
    ---
     src/kits/interface/Menu.cpp | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/kits/interface/Menu.cpp b/src/kits/interface/Menu.cpp
    index c081e6fa44..1ed03c6e28 100644
    a b BMenu::_ComputeLayout(int32 index, bool bestFit, bool moveItems,  
    21962196        if (dynamic_cast<_BMCMenuBar_*>(this) != NULL)
    21972197            size.width = Bounds().Width() - fPad.right;
    21982198        else if (Parent() != NULL)
    2199             size.width = Parent()->Frame().Width() + 1;
     2199            size.width = Parent()->Frame().Width();
    22002200        else if (Window() != NULL)
    2201             size.width = Window()->Frame().Width() + 1;
     2201            size.width = Window()->Frame().Width();
    22022202        else
    22032203            size.width = Bounds().Width();
    22042204    } else