Fix strange quoting behaviour (#1225)

This commit is contained in:
RainLoop Team 2016-10-26 01:10:36 +03:00
parent aecb0b2500
commit ca4897038a
3 changed files with 26 additions and 3 deletions

View file

@ -14,7 +14,8 @@ import {
import {
trim, isNormal, isArray, inArray,
pInt, pString, plainToHtml,
windowResize, findEmailAndLinks
windowResize, findEmailAndLinks,
getRealHeight
} from 'Common/Utils';
import {
@ -459,7 +460,14 @@ class MessageUserStore
{
$oList.each(function() {
const $this = $(this); // eslint-disable-line no-invalid-this
if ('' !== trim($this.text()))
let h = $this.height();
if (0 === h)
{
h = getRealHeight($this);
}
if ('' !== trim($this.text()) && (0 === h || 100 < h))
{
$this.addClass('rl-bq-switcher hidden-bq');
$('<span class="rlBlockquoteSwitcher"><i class="icon-ellipsis" /></span>')