Skip to content

Commit e359024

Browse files
author
Martin Robinson
committed
The fullscreen property nos overrides width/height constraints in Win32.
[#287 state:resolved]
1 parent 9d24625 commit e359024

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/ti.UI/win32/win32_user_window.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,16 @@ void Win32UserWindow::GetMinMaxInfo(MINMAXINFO* minMaxInfo)
13551355
if (!minMaxInfo)
13561356
return;
13571357

1358+
1359+
// If we are in fullscreen mode, minimum and maximum constraints
1360+
// should not apply, so just send the defaults back.
1361+
if (this->IsFullscreen())
1362+
{
1363+
minMaxInfo->ptMaxTrackSize.x = minMaxInfo->ptMaxTrackSize.y = INT_MAX;
1364+
minMaxInfo->ptMinTrackSize.x = minMaxInfo->ptMinTrackSize.y = 0;
1365+
return;
1366+
}
1367+
13581368
int maxWidth = (int) GetMaxWidth();
13591369
int minWidth = (int) GetMinWidth();
13601370
int maxHeight = (int) GetMaxHeight();

0 commit comments

Comments
 (0)