mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 13:27:32 +08:00
Fix Bug 51297 (#1045)
Co-authored-by: Julia Radzhabova <julia.radzhabova@onlyoffice.com>
This commit is contained in:
committed by
GitHub
parent
a113f189f9
commit
bbb0d0d6e2
@ -476,7 +476,10 @@ define([
|
||||
}, this);
|
||||
this.dataViewItems = [];
|
||||
|
||||
this.store.each(this.onAddItem, this);
|
||||
var me = this;
|
||||
this.store.each(function(item){
|
||||
me.onAddItem(item, me.store);
|
||||
}, this);
|
||||
|
||||
if (this.allowScrollbar) {
|
||||
this.scroller = new Common.UI.Scroller({
|
||||
|
||||
@ -198,7 +198,7 @@ define([
|
||||
if (innerEl) {
|
||||
(this.dataViewItems.length<1) && innerEl.find('.empty-text').remove();
|
||||
|
||||
if (opts && opts.at!==undefined) {
|
||||
if (opts && (typeof opts.at==='number')) {
|
||||
var idx = opts.at;
|
||||
var innerDivs = innerEl.find('> div');
|
||||
if (idx > 0)
|
||||
|
||||
Reference in New Issue
Block a user