bug #17574: fixed ResizeView() to generate an update for the bounding box of old and new bounds of the view, instead of the entire parent view (duh!). this can be optimized further by doing separate updates if old and new aren't overlapping. r=kin

This commit is contained in:
beard%netscape.com 1999-12-01 22:58:24 +00:00
Родитель e2b9d47819
Коммит 53edb43c8a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1888,7 +1888,7 @@ NS_IMETHODIMP nsViewManager::ResizeView(nsIView *aView, nscoord width, nscoord h
// resize the view.
aView->SetDimensions(width, height);
#if 0
#if 1
// refresh the bounding box of old and new areas.
nscoord maxWidth = (oldWidth < width ? width : oldWidth);
nscoord maxHeight = (oldHeight < height ? height : oldHeight);