mirror of https://github.com/zulip/zulip.git
Remove firefox-specific table hack, as we're no longer using tables for messages
(imported from commit 0d4e171c11e77e4000a8bfe7cbb8fc13e827d54d)
This commit is contained in:
parent
174a62eb7c
commit
f128ff6d53
|
@ -381,21 +381,6 @@ MessageListView.prototype = {
|
|||
table.append(rendered_elems);
|
||||
|
||||
list.update_trailing_bookend();
|
||||
|
||||
// XXX: This is absolutely awful. There is a firefox bug
|
||||
// where when table rows as DOM elements are appended (as
|
||||
// opposed to as a string) a border is sometimes added to the
|
||||
// row. This border goes away if we add a dummy row to the
|
||||
// top of the table (it doesn't go away on any reflow,
|
||||
// though, as resizing the window doesn't make them go away).
|
||||
// So, we add an empty row and then garbage collect them
|
||||
// later when the user is idle.
|
||||
var dummy = $("<div></div>");
|
||||
table.find('.ztable_layout_row').after(dummy);
|
||||
$(document).idle({'idle': 1000*10,
|
||||
'onIdle': function () {
|
||||
dummy.remove();
|
||||
}});
|
||||
}
|
||||
|
||||
_.each(rendered_elems, function (elem) {
|
||||
|
|
Loading…
Reference in New Issue