Use fDragRegion width not left, you can't depend on the screen position reliably

This commit is contained in:
John Scipione
2012-11-12 22:03:26 -05:00
parent 27a53c3c9e
commit 652a115c1c
+4 -3
View File
@@ -492,9 +492,10 @@ TBarView::PlaceApplicationBar()
if (fBarMenuBar != NULL)
expandoFrame.left = fBarMenuBar->Frame().Width();
if (fTrayLocation != 0)
expandoFrame.right = fDragRegion->Frame().left - 1;
else
if (fTrayLocation != 0 && fDragRegion != NULL) {
expandoFrame.right = screenFrame.Width()
- fDragRegion->Frame().Width() - 1;
} else
expandoFrame.right = screenFrame.Width();
menuScrollFrame = expandoFrame;