We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96fa0ef + f363670 commit 587b0ccCopy full SHA for 587b0cc
modules/highgui/src/window_QT.cpp
@@ -2591,6 +2591,7 @@ void DefaultViewPort::resizeEvent(QResizeEvent* evnt)
2591
if (fabs(ratioX - ratioY) * 100 > ratioX) //avoid infinity loop / epsilon = 1% of ratioX
2592
{
2593
resize(newSize);
2594
+ viewport()->resize(newSize);
2595
2596
//move to the middle
2597
//newSize get the delta offset to place the picture in the middle of its parent
0 commit comments