Fix fixed header issue after removing rows (1295420)
| | |
| | | |
| | | if ((response.action == 'list' || response.action == 'search') && this.message_list) { |
| | | this.msglist_select(this.message_list); |
| | | this.message_list.resize(); |
| | | this.triggerEvent('listupdate', { folder:this.env.mailbox, rowcount:this.message_list.rowcount }); |
| | | } |
| | | } |
| | |
| | | this.enable_command('search-create', this.env.source == ''); |
| | | this.enable_command('search-delete', this.env.search_id); |
| | | this.update_group_commands(); |
| | | this.contact_list.resize(); |
| | | this.triggerEvent('listupdate', { folder:this.env.source, rowcount:this.contact_list.rowcount }); |
| | | } |
| | | } |
| | |
| | | // reset scroll position (in Opera) |
| | | if (this.frame) |
| | | this.frame.scrollTop = 0; |
| | | |
| | | // fix list header after removing any rows |
| | | this.resize(); |
| | | }, |
| | | |
| | | |
| | |
| | | */ |
| | | remove_row: function(uid, sel_next) |
| | | { |
| | | var node = this.rows[uid] ? this.rows[uid].obj : null; |
| | | var self = this, node = this.rows[uid] ? this.rows[uid].obj : null; |
| | | |
| | | if (!node) |
| | | return; |
| | |
| | | |
| | | delete this.rows[uid]; |
| | | this.rowcount--; |
| | | |
| | | // fix list header after removing any rows |
| | | clearTimeout(this.resize_timeout) |
| | | this.resize_timeout = setTimeout(function() { self.resize(); }, 50); |
| | | }, |
| | | |
| | | |
| | |
| | | */ |
| | | insert_row: function(row, before) |
| | | { |
| | | var tbody = this.tbody; |
| | | var self = this, tbody = this.tbody; |
| | | |
| | | // create a real dom node first |
| | | if (row.nodeName === undefined) { |
| | |
| | | |
| | | this.init_row(row); |
| | | this.rowcount++; |
| | | |
| | | // fix list header after adding any rows |
| | | clearTimeout(this.resize_timeout) |
| | | this.resize_timeout = setTimeout(function() { self.resize(); }, 50); |
| | | }, |
| | | |
| | | /** |