JBR-1552 Invalid screen bounds in full screen mode

Check is window is not in undecorated state

(cherry picked from commit 5547701e2c)
This commit is contained in:
Vyacheslav Moklev
2019-05-30 11:02:00 +03:00
committed by alexey.ushakov@jetbrains.com
parent 11b0314036
commit 6ddd23d65d

View File

@@ -1786,8 +1786,10 @@ MsgRouting AwtFrame::WmNcCalcSize(BOOL wParam, LPNCCALCSIZE_PARAMS lpncsp, LRESU
if (::IsZoomed(GetHWnd())) {
rect->top += insets.bottom;
// [moklev] Workaround for RIDER-27069, IDEA-211327
rect->right += this->ScaleUpX(1);
rect->bottom -= 1;
if (!this->IsUndecorated()) {
rect->right += this->ScaleUpX(1);
rect->bottom -= 1;
}
}
else {
// this makes the native caption go uncovered