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:
Ingo Weinhold
2007-06-09 11:21:17 +00:00
parent 53fa6fbc76
commit da3addea5f
-7
View File
@@ -3605,13 +3605,6 @@ 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)
deltaWidth = -fBounds.right;
if (fBounds.bottom + deltaHeight < 0)
deltaHeight = -fBounds.bottom;
// BeBook says we should do this. And it makes sense.
deltaWidth = roundf(deltaWidth);
deltaHeight = roundf(deltaHeight);