Removed incorrect parameter validation in ResizeBy(). Resizing a view to a
negative size is perfectly fine. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21368 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -3605,13 +3605,6 @@ BView::ResizeBy(float deltaWidth, float deltaHeight)
|
|||||||
{
|
{
|
||||||
// TODO: this doesn't look like it would work correctly with scrolled views
|
// 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)
|
|
||||||
deltaWidth = -fBounds.right;
|
|
||||||
if (fBounds.bottom + deltaHeight < 0)
|
|
||||||
deltaHeight = -fBounds.bottom;
|
|
||||||
|
|
||||||
// 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);
|
||||||
|
|||||||
Reference in New Issue
Block a user