Correct autosizing masks. Fixes #281
Merge pull request #295 from iosdeveloper/Autosizing

Correct autosizing masks. Fixes #281