do not calculate size with hidden elements when resizing
Merge pull request #7417 from adobe/zaggino/resizer-fix

do not calculate size with hidden elements when resizing