offset: make sure border width always gets calculated in pixels