* resizing scrolled views should have definitely been broken

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22039 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2007-08-22 14:53:24 +00:00
parent 79d6486d1d
commit f148f628da

View File

@ -3601,8 +3601,6 @@ 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
// BeBook says we should do this. And it makes sense.
deltaWidth = roundf(deltaWidth);
deltaHeight = roundf(deltaHeight);
@ -3614,8 +3612,8 @@ BView::ResizeBy(float deltaWidth, float deltaHeight)
check_lock();
fOwner->fLink->StartMessage(AS_LAYER_RESIZE_TO);
fOwner->fLink->Attach<float>(fBounds.right + deltaWidth);
fOwner->fLink->Attach<float>(fBounds.bottom + deltaHeight);
fOwner->fLink->Attach<float>(fBounds.Width() + deltaWidth);
fOwner->fLink->Attach<float>(fBounds.Height() + deltaHeight);
// fState->valid_flags |= B_VIEW_FRAME_BIT;