From bb5128d84437f95a2135761b7f5b07a93fc0cb39 Mon Sep 17 00:00:00 2001 From: "michaelp%netscape.com" Date: Fri, 16 Apr 1999 05:19:45 +0000 Subject: [PATCH] oops. union works better than intersect... --- view/src/nsView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/src/nsView.cpp b/view/src/nsView.cpp index edd23caa8da..b528dca6095 100644 --- a/view/src/nsView.cpp +++ b/view/src/nsView.cpp @@ -1388,7 +1388,7 @@ static void calc_extents(nsIView *view, nsRect *extents, nscoord ox, nscoord oy) bounds.x += ox; bounds.y += oy; - extents->IntersectRect(*extents, bounds); + extents->UnionRect(*extents, bounds); calc_extents(kid, extents, bounds.x, bounds.y); }