mirror of
https://github.com/zulip/zulip.git
synced 2026-07-18 21:04:19 +08:00
Increase the threshhold for triggering collapsing./
(imported from commit c09b5ac43b4521bcbb2ab3feb5334fc9cf9ba1a5)
This commit is contained in:
parent
3f68ff3ac3
commit
c4e4b481bd
@ -409,7 +409,7 @@ MessageList.prototype = {
|
||||
// Instead of showing an expander button, just expand that element instead
|
||||
// of keeping it collapsed. (This also solves a bug seen on some Mac
|
||||
// systems where offsetHeight == scrollHeight-1 for no apparent reason).
|
||||
if (content.offsetHeight+50 < content.scrollHeight) {
|
||||
if (content.offsetHeight + 250 < content.scrollHeight) {
|
||||
$(elem).find(".message_expander").show();
|
||||
} else if (content.offsetHeight < content.scrollHeight) {
|
||||
$(content).addClass("expanded");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user