Bug 648902 - Limit the 'hide browser window when transitioning to full screen' functionality to normalized windows. (UX improvement) r=roc

This commit is contained in:
Jim Mathies 2011-04-11 12:46:18 -05:00
Родитель ba04fffad9
Коммит a796da20db
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -2906,7 +2906,8 @@ nsWindow::MakeFullScreen(PRBool aFullScreen)
UpdateNonClientMargins(); UpdateNonClientMargins();
PRBool visible = mIsVisible; PRBool visible = mIsVisible;
Show(PR_FALSE); if (mOldSizeMode == nsSizeMode_Normal)
Show(PR_FALSE);
// Will call hide chrome, reposition window. Note this will // Will call hide chrome, reposition window. Note this will
// also cache dimensions for restoration, so it should only // also cache dimensions for restoration, so it should only