Fix calculate width, height using margins

https://jira.appcelerator.org/browse/TIMOB-13777