[SSE] Fix bug with math info (small browser width)
This commit is contained in:
parent
3a26b4f00c
commit
7de2760b5d
|
@ -742,7 +742,9 @@ define([
|
||||||
this.$el.find('.over-box').removeClass('over-box');
|
this.$el.find('.over-box').removeClass('over-box');
|
||||||
while (width + parseInt(this.boxMath.css('width')) + 100 > widthStatusbar) {
|
while (width + parseInt(this.boxMath.css('width')) + 100 > widthStatusbar) {
|
||||||
var items = this.boxMath.find('label:not(.hide, .over-box)');
|
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;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue