[haiku-commits] haiku: hrev53397 - in src/kits: interface tracker

  • From: Ryan Leavengood <leavengood@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 23 Aug 2019 22:21:04 -0400 (EDT)

hrev53397 adds 2 changesets to branch 'master'
old head: a830ec9a1c5f0e359bac214710f002f29dbd1d76
new head: 8043df7a45d9a28e635e0a96680e8c3875928208
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=8043df7a45d9+%5Ea830ec9a1c5f

----------------------------------------------------------------------------

f146f74b4289: Fix BMenuBar width

8043df7a45d9: Fix BMenuBar width in Tracker

                                              [ X512 <danger_mail@xxxxxxx> ]

----------------------------------------------------------------------------

2 files changed, 2 insertions(+), 3 deletions(-)
src/kits/interface/Menu.cpp          | 4 ++--
src/kits/tracker/ContainerWindow.cpp | 1 -

############################################################################

Commit:      f146f74b4289855592b617a5eaf513a780c3c9e1
URL:         https://git.haiku-os.org/haiku/commit/?id=f146f74b4289
Author:      X512 <danger_mail@xxxxxxx>
Date:        Tue Aug 20 11:25:48 2019 UTC
Committer:   Ryan Leavengood <leavengood@xxxxxxxxx>
Commit-Date: Sat Aug 24 02:14:05 2019 UTC

Fix BMenuBar width

----------------------------------------------------------------------------

diff --git a/src/kits/interface/Menu.cpp b/src/kits/interface/Menu.cpp
index c081e6fa44..1ed03c6e28 100644
--- a/src/kits/interface/Menu.cpp
+++ b/src/kits/interface/Menu.cpp
@@ -2196,9 +2196,9 @@ BMenu::_ComputeLayout(int32 index, bool bestFit, bool 
moveItems,
                if (dynamic_cast<_BMCMenuBar_*>(this) != NULL)
                        size.width = Bounds().Width() - fPad.right;
                else if (Parent() != NULL)
-                       size.width = Parent()->Frame().Width() + 1;
+                       size.width = Parent()->Frame().Width();
                else if (Window() != NULL)
-                       size.width = Window()->Frame().Width() + 1;
+                       size.width = Window()->Frame().Width();
                else
                        size.width = Bounds().Width();
        } else

############################################################################

Revision:    hrev53397
Commit:      8043df7a45d9a28e635e0a96680e8c3875928208
URL:         https://git.haiku-os.org/haiku/commit/?id=8043df7a45d9
Author:      X512 <danger_mail@xxxxxxx>
Date:        Tue Aug 20 12:22:45 2019 UTC
Committer:   Ryan Leavengood <leavengood@xxxxxxxxx>
Commit-Date: Sat Aug 24 02:19:27 2019 UTC

Fix BMenuBar width in Tracker

----------------------------------------------------------------------------

diff --git a/src/kits/tracker/ContainerWindow.cpp 
b/src/kits/tracker/ContainerWindow.cpp
index 0370114601..65d61b5c84 100644
--- a/src/kits/tracker/ContainerWindow.cpp
+++ b/src/kits/tracker/ContainerWindow.cpp
@@ -1055,7 +1055,6 @@ BContainerWindow::InitLayout()
        item->SetExplicitMaxSize(BSize(kCountViewWidth, B_SIZE_UNSET));
 
        // Eliminate the extra borders
-       fMenuContainer->GroupLayout()->SetInsets(0, 0, -1, 0);
        fPoseContainer->GridLayout()->SetInsets(-1, 0, -1, -1);
        fCountContainer->GroupLayout()->SetInsets(0, -1, 0, 0);
 


Other related posts:

  • » [haiku-commits] haiku: hrev53397 - in src/kits: interface tracker - Ryan Leavengood