diff --git a/gfx/src/os2/nsScreenOS2.cpp b/gfx/src/os2/nsScreenOS2.cpp index d1a7816d780..c92ec5ab439 100644 --- a/gfx/src/os2/nsScreenOS2.cpp +++ b/gfx/src/os2/nsScreenOS2.cpp @@ -117,9 +117,9 @@ nsScreenOS2 :: GetAvailRect(PRInt32 *outLeft, PRInt32 *outTop, PRInt32 *outWidth WinQueryWindowPos( hwndWarpCenter, &swp ); if (swp.y != 0) { /* WarpCenter is at the top */ - *outTop += (*outHeight - lWorkAreaHeight); + *outTop += swp.cy; } - *outHeight = lWorkAreaHeight; + *outHeight -= swp.cy; } }