Modify ↓
Ticket #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: | |
| Blocking: | Blocked by: |
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
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.

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).