Modify ↓
Ticket #5463 (closed bug: worksforme)
.width() not returning correct result in IE<8 of Safari browsers when content injected in dom
| Reported by: | nicskitt | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | ajax | Version: | 1.3.2 |
| Keywords: | load,width | Cc: | |
| Blocking: | Blocked by: |
Description
When inserting content into the DOM via the load() call the correct width of the containing div is not returned when using the width() function in certain browsers. IE8 & FF3+ do not seem to be affected.
In most cases the total width of the window is returned instead.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

WIthout an example, it sounds like this may be a logic error in your code. You should make sure that you don't call the .width() method too soon.