Update to check both width and height at the same time.

Signed-off-by: Chris Galvan <chgalvan@amazon.com>
This commit is contained in:
Chris Galvan
2021-07-22 12:49:51 -05:00
parent ce3b9e2917
commit 8cf7f8ed7b
@@ -261,7 +261,7 @@ namespace AzQtComponents
geo.setWidth(screenGeometry.width());
}
}
else if (geo.height() > screenGeometry.height())
if (geo.height() > screenGeometry.height())
{
auto guestMinimumHeight = m_guestWidget->minimumHeight();
if (guestMinimumHeight && guestMinimumHeight <= screenGeometry.height())