JBR-1552 Invalid screen bounds in full screen mode

Check is window is not in undecorated state

(cherry picked from commit 5547701e2c)
(cherry picked from commit d5fa62913e)
This commit is contained in:
Vyacheslav Moklev
2019-05-30 11:02:00 +03:00
committed by jbrbot
parent aa942afd82
commit 5370931465

View File

@@ -1833,8 +1833,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