TIMOB-12027-Convert the width with units properly before setting

Properly convert the borderwidth to pixels.

Jira ticket
https://jira.appcelerator.org/browse/TIMOB-12027