Fix for MOSYNC-2726. wrapContentHorizontally excedes the screen.

Fix for http://jira.mosync.com/browse/MOSYNC-2726