Added the scrolling offset when a view is created.

This lightens the problem in bug #98 a bit, but doesn't completely fix it; you
still don't see any items in that list on the switch, but they now appear again
when you scroll around there.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16997 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-04-04 01:51:16 +00:00
parent 31dc79a18b
commit 903936bcec
6 changed files with 19 additions and 12 deletions
+3
View File
@@ -3463,6 +3463,8 @@ BView::MoveTo(float x, float y)
void
BView::ResizeBy(float deltaWidth, float deltaHeight)
{
// TODO: this doesn't look like it would work correctly with scrolled views
// NOTE: I think this check makes sense, but I didn't
// test what R5 does.
if (fBounds.right + deltaWidth < 0)
@@ -3972,6 +3974,7 @@ BView::_CreateSelf()
fOwner->fLink->Attach<int32>(_get_object_token_(this));
fOwner->fLink->AttachString(Name());
fOwner->fLink->Attach<BRect>(Frame());
fOwner->fLink->Attach<BPoint>(LeftTop());
fOwner->fLink->Attach<uint32>(ResizingMode());
fOwner->fLink->Attach<uint32>(fEventMask);
fOwner->fLink->Attach<uint32>(fEventOptions);