Modify ↓
Ticket #12585 (closed bug: duplicate)
$(window).height(), problem when in loop
| Reported by: | andreluizweb@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.8.0 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
function AndRedimensiona() {
var valMeio = $(window).height();
$("#divPopConteudo").css('height', + valMeio + 'px');
setTimeout("AndRedimensiona()", 1);
}
when i use this function, using a jquery 1.8.x (or more), tha value of variable "valmeio",is change each interation. This value is not fixed, it's variable. same when not happen change in the window.
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.

Duplicate of #12388.