Bug Tracker

Modify

Ticket #12585 (closed bug: duplicate)

Opened 9 months ago

Last modified 9 months ago

$(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

comment:1 Changed 9 months ago by mikesherov

  • Status changed from new to closed
  • Resolution set to duplicate

Duplicate of #12388.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.