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

Properly convert the borderwidth to pixels.