Imported InfoWindow.cpp 1.15 from OpenTracker CVS.

This fixes bug #649.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17826 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-06-13 16:28:31 +00:00
parent cce6f8d05f
commit 85376415a4

View File

@ -1281,7 +1281,7 @@ AttributeView::MouseMoved(BPoint point, uint32, const BMessage *message)
&& StringWidth(fPathStr.String()) > (Bounds().Width() - (fDivider + kBorderMargin))) {
fTrackingState = no_track;
BRect rect(fPathRect);
rect.right = rect.left + StringWidth(fPathStr.String()) + 4;
rect.right = rect.left + be_plain_font->StringWidth(fPathStr.String()) + 4;
rect.OffsetBy(Window()->Frame().left, Window()->Frame().top);
if (rect.left < 0)
rect.OffsetBy(rect.left * -1, 0);
@ -1296,7 +1296,7 @@ AttributeView::MouseMoved(BPoint point, uint32, const BMessage *message)
&& StringWidth(fLinkToStr.String()) > (Bounds().Width() - (fDivider + kBorderMargin))) {
fTrackingState = no_track;
BRect rect(fLinkRect);
rect.right = rect.left + StringWidth(fLinkToStr.String()) + 4;
rect.right = rect.left + be_plain_font->StringWidth(fLinkToStr.String()) + 4;
rect.OffsetBy(Window()->Frame().left, Window()->Frame().top);
if (rect.left < 0)
rect.OffsetBy(rect.left * -1, 0);
@ -1311,7 +1311,7 @@ AttributeView::MouseMoved(BPoint point, uint32, const BMessage *message)
&& StringWidth(fDescStr.String()) > (Bounds().Width() - (fDivider + kBorderMargin))) {
fTrackingState = no_track;
BRect rect(fDescRect);
rect.right = rect.left + StringWidth(fDescStr.String()) + 4;
rect.right = rect.left + be_plain_font->StringWidth(fDescStr.String()) + 4;
rect.OffsetBy(Window()->Frame().left, Window()->Frame().top);
if (rect.left < 0)
rect.OffsetBy(rect.left * -1, 0);