Merge pull request #2003 from ONLYOFFICE/fix/sse-table-styles

[SSE] Fix bug in template table for right menu
This commit is contained in:
Julia Radzhabova 2022-10-12 15:25:37 +03:00 committed by GitHub
commit 548ea8f2e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -565,19 +565,6 @@ define([
menu.alignPosition();
}
}
var scroller = self.mnuTableTemplatePicker.scroller;
if (scroller) {
scroller.update({alwaysVisibleY: true});
scroller.scrollTop(0);
}
var val = self.mnuTableTemplatePicker.store.findWhere({name: self._state.tablestylename});
if (val)
self.mnuTableTemplatePicker.selectRecord(val);
else
self.mnuTableTemplatePicker.deselectAll();
});
this.btnTableTemplate.render($('#table-btn-template'));