Bug Tracker

Opened 10 years ago

Closed 10 years ago

#5462 closed bug (invalid)

$(".selector").resize(function(){...}); no work in FF3.0.5

Reported by: chungnn Owned by:
Priority: major Milestone: 1.4
Component: core Version: 1.3.2
Keywords: resize Cc:
Blocked by: Blocking:

Description

function balanceMainDivSize() {

if ($("#d1").height() > $("#d2").height())

$("#d2").css("height", $("#d1").height());

else

$("#d1").css("height", $("#d2").height());

}

$("#d2").resize(function() {

balanceMainDivSize();

});

Change History (1)

comment:1 Changed 10 years ago by john

Resolution: invalid
Status: newclosed

The resize event only fires on the window, it doesn't fire on individual elements (since the event is a response to the user taking an action, like resizing the browser window).

Note: See TracTickets for help on using tickets.