Merge pull request #462 from ONLYOFFICE/fix/sse-math-info

[SSE] Fix bug with math info (small browser width)
This commit is contained in:
Julia Radzhabova 2020-08-12 18:30:17 +03:00 committed by GitHub
commit 763ea6a2f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -742,7 +742,9 @@ define([
this.$el.find('.over-box').removeClass('over-box');
while (width + parseInt(this.boxMath.css('width')) + 100 > widthStatusbar) {
var items = this.boxMath.find('label:not(.hide, .over-box)');
$(items[items.length - 1]).addClass('over-box');
(items.length>0) && $(items[items.length - 1]).addClass('over-box');
if (items.length<=1)
break;
}
},