outerWidth is an Object not an Integer!

outerWidth is an Object not an Integer!

Hello,

i use the Method outerWidth to get the real Width of an Element (Width + Padding + Border).
Currently i use the jQuery version 1.8.2. Before iam update, i use 1.7.2. Additional to jQuery, i use jQuery UI (newest version).

After the Update, the outerWidth Method is not an Integer. It seems like an Object.

How i can fixx that?

  1. // Set Title Width
  2. var width = 0;

  3. $("div.wb_interface nav ul li").each(function() {
  4. console.log("Call outerWidth\n------------------------------------------------");
  5. var ow = $(this).outerWidth(true);
  6. console.log(ow);
  7. console.log("type: " + typeof(ow));
  8. width += ow;
  9. console.log("End outerWidth\n------------------------------------------------");
  10. });

  11. var wb_interface = $("div.wb_interface").width();
  12. var size = wb_interface - (width + 20);
  13. console.log(wb_interface);
  14. console.log(width);
  15. console.log(size);

  16. if(size >= 185 - 15) {
  17. $("div.wb_interface nav div.title").css("width", size);
  18. } else {
  19. $("div.wb_interface nav div.title").css("width", 185 - 15);
  20. }