Use fDragRegion width not left, you can't depend on the screen position reliably
This commit is contained in:
parent
27a53c3c9e
commit
652a115c1c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user