Fix errors in width and height calculations

border-left/right/top/bottom are not numbers.
Fix panel height calculation in Opera