Deskbar: Move tray past border in horizontal mode

Fixes #13711
This commit is contained in:
John Scipione
2017-10-07 01:47:16 -07:00
parent 72170ccebf
commit 6123d2dd9b
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -469,6 +469,9 @@ TBarView::PlaceTray(bool vertSwap, bool leftSwap)
} else {
if (!fResizeControl->IsHidden())
fResizeControl->Hide();
// move right and down to not cover border then resize to fit
fReplicantTray->MoveTo(kGutter, kGutter);
fReplicantTray->ResizeBy(-kGutter, -kGutter);
BRect screenFrame = (BScreen(Window())).Frame();
statusLoc.x = screenFrame.right - fDragRegion->Bounds().Width();
statusLoc.y = -1;
+1 -1
View File
@@ -1160,7 +1160,7 @@ TReplicantTray::LocationForReplicant(int32 index, float width)
if (fBarView->Vertical() && !fBarView->Left())
loc.x += kDragWidth;
else if (!fBarView->Vertical())
loc.x += 2;
loc.x += kGutter;
if (fMultiRowMode) {
// try to find free space in every row