fixed BWindow::MoveXX(), BWindow::ResizeXX() and BView::ConvertToScreen()

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12491 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2005-04-28 12:31:25 +00:00
parent 8f6b562ad5
commit 9715a3e1bf
4 changed files with 66 additions and 46 deletions
+12 -1
View File
@@ -528,8 +528,12 @@ BView::ConvertFromParent(BRect rect) const
void
BView::ConvertToScreen(BPoint *pt) const
{
if (!parent)
if (!parent) {
if (owner)
owner->ConvertToScreen(pt);
return;
}
do_owner_check_no_pick();
@@ -3323,6 +3327,13 @@ BView::ResizeBy(float deltaWidth, float deltaHeight)
void
BView::ResizeTo(float width, float height)
{
// NOTE: I think this check makes sense, but I didn't
// test what R5 does.
if (width < 0.0)
width = 0.0;
if (height < 0.0)
height = 0.0;
if (width == fBounds.Width() && height == fBounds.Height())
return;