b=489518; on CE6, some dialogs are too short resulting in elements being cut off at the bottom; r=dougt

This commit is contained in:
Vladimir Vukicevic 2009-06-16 11:55:06 -07:00
parent df7fa7fb64
commit 578416724b

View File

@ -818,13 +818,22 @@ NS_METHOD nsWindow::CaptureMouse(PRBool aCapture)
//-------------------------------------------------------------------------
//
// Default for height modification is to do nothing
// Add extra height if needed (on Windows CE)
//
//-------------------------------------------------------------------------
PRInt32 nsWindow::GetHeight(PRInt32 aProposedHeight)
{
return(aProposedHeight);
PRInt32 extra = 0;
#if defined(WINCE) && !defined(WINCE_WINDOWS_MOBILE)
DWORD style = WindowStyle();
if ((style & WS_SYSMENU) && (style & WS_POPUP)) {
extra = GetSystemMetrics(SM_CYCAPTION);
}
#endif
return aProposedHeight + extra;
}
//-------------------------------------------------------------------------