outerwidth

wrong width calculation using outerWidth() in google chrome [onload]

跟風遠走 提交于 2019-12-13 14:42:47
问题 I have a navigation bar(topmenu) inside a div. I have to hide the rest of the menu elements if the width of the menu is greater than that of the outer div. Unfortunately I cant use overflow:hidden for the div .So I use .outerWidth() function to calculate the total width of the div and the width of each elment(li), and hide the overflow elements. So my problem is its works fine in firefox(19.0),IE(8)!, but not in chrome. In chrome all elements are hidden. The problem resolves when i change $

jQuery 1.8.2 + noncurrent jQuery UI = outerWidth and outerHeight broken

旧城冷巷雨未停 提交于 2019-11-27 03:24:09
问题 This is a re-do of a question that was closed erroneously: jQuery 1.8 outer Height/Width not working I'm hitting the same issue. outerWidth and outerHeight and now returning the jQuery object instead of numbers. We are using jQuery UI 1.8.17, released Jan 10, 2012. It is not a super old version so I have a feeling other people will see this. We are locked into this version because of some terrible jQuery ui plugins, so upgrading is not currently an option. If I find a solution I will answer