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