Fix Issue #5: adjust swapping of max/min when keeping width or height
Fix Issue #5: adjust swapping of max/min when keeping width or height

K-Be/KeepLayout,iMartinKiss/KeepLayout,Tricertops/KeepLayout,gaurav1981/KeepLayout,Tricertops/KeepLayout,K-Be/KeepLayout