fix resize event detection to exclude ios false alarms and improved detection of margin between short image
fix resize event detection to exclude ios false alarms and improved detection of margin between short image

TheTyee/design-article.thetyee.ca,TheTyee/design-article.thetyee.ca,TheTyee/design-article.thetyee.ca