jQuery 1.8.2 + noncurrent jQuery UI = outerWidth and outerHeight broken

后端 未结 3 1207
甜味超标
甜味超标 2020-12-10 04:38

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 o

相关标签:
3条回答
  • 2020-12-10 04:38

    A simple solution seems to be just passing in false

    $(document.body).outerWidth(false);
    

    Or, true if you want the margins, but if you were passing in true it looks like you would not have encountered this bug.

    0 讨论(0)
  • 2020-12-10 04:41

    I suggest upgrading both your jQuery and jQuery UI packages. 1.8.1 and 1.8.2 in particular address issues related to outerWidth / outerHeight, and jQuery UI of course needs to be kept in sync.

    See the changelogs on the announcements for reference:

    http://blog.jquery.com/

    http://blog.jqueryui.com/

    0 讨论(0)
  • 2020-12-10 04:48

    Looks like it is jqueryUI issue. Seems to be fixed in 1.8.22.

    With jquery UI 1.8.21: http://jsfiddle.net/yVq5H/13/

    With jquery UI 1.8.22 (fixed): http://jsfiddle.net/yVq5H/14/

    0 讨论(0)
提交回复
热议问题