mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 22:05:44 +00:00
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:
parent
df7fa7fb64
commit
578416724b
@ -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;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user