Merge pull request #4200 from Astero92:#3800
This commit is contained in:
commit
587b0cc7b4
@ -2591,6 +2591,7 @@ void DefaultViewPort::resizeEvent(QResizeEvent* evnt)
|
|||||||
if (fabs(ratioX - ratioY) * 100 > ratioX) //avoid infinity loop / epsilon = 1% of ratioX
|
if (fabs(ratioX - ratioY) * 100 > ratioX) //avoid infinity loop / epsilon = 1% of ratioX
|
||||||
{
|
{
|
||||||
resize(newSize);
|
resize(newSize);
|
||||||
|
viewport()->resize(newSize);
|
||||||
|
|
||||||
//move to the middle
|
//move to the middle
|
||||||
//newSize get the delta offset to place the picture in the middle of its parent
|
//newSize get the delta offset to place the picture in the middle of its parent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user