173640 [gtk2] Location bar autocomplete lists display incorrectly

r=blizzard. This is NOT for default build.
This commit is contained in:
bolian.yin%sun.com 2002-10-24 02:00:47 +00:00
Родитель 43194fe941
Коммит fbb8ad2944
1 изменённых файлов: 7 добавлений и 1 удалений

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

@ -360,7 +360,13 @@ nsCommonWidget::Resize(PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
// Are the bounds sane?
if (AreBoundsSane()) {
// Yep? Resize the window
NativeResize(aWidth, aHeight, aRepaint);
//Maybe, the toplevel has moved
if (mIsTopLevel)
NativeResize(mBounds.x, mBounds.y,
mBounds.width, mBounds.height, aRepaint);
else
NativeResize(mBounds.width, mBounds.height, aRepaint);
// Does it need to be shown because it was previously insane?
if (mNeedsShow)
NativeShow(PR_TRUE);