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?
- // Set Title Width
- var width = 0;
- $("div.wb_interface nav ul li").each(function() {
- console.log("Call outerWidth\n------------------------------------------------");
- var ow = $(this).outerWidth(true);
- console.log(ow);
- console.log("type: " + typeof(ow));
- width += ow;
- console.log("End outerWidth\n------------------------------------------------");
- });
- var wb_interface = $("div.wb_interface").width();
- var size = wb_interface - (width + 20);
- console.log(wb_interface);
- console.log(width);
- console.log(size);
- if(size >= 185 - 15) {
- $("div.wb_interface nav div.title").css("width", size);
- } else {
- $("div.wb_interface nav div.title").css("width", 185 - 15);
- }