[mobile] Fix bug 44353

This commit is contained in:
Julia Svinareva 2020-01-31 17:29:02 +03:00
parent 6cc7d096d2
commit e21c97050c
4 changed files with 11 additions and 16 deletions

View file

@ -608,6 +608,7 @@ define([
if (me.api) {
me.api.Resize();
me.api.zoomFitToWidth();
me.api.asc_GetDefaultTableStyles && _.defer(function () {me.api.asc_GetDefaultTableStyles()});
}
me.applyLicense();

View file

@ -83,15 +83,6 @@ define([
},
initEvents: function () {
var me = this;
if (!_initDefaultStyles) {
_initDefaultStyles = true;
_styles = [];
me.api.asc_GetDefaultTableStyles();
}
$('#add-table li').single('click', _.buffered(this.onStyleClick, 100, this));
},
@ -178,6 +169,11 @@ define([
// API handlers
onApiInitTemplates: function(templates) {
if (!_initDefaultStyles) {
_initDefaultStyles = true;
_styles = [];
}
if (_styles.length < 1) {
_.each(templates, function(template){
_styles.push({

View file

@ -553,6 +553,7 @@ define([
if (me.api) {
me.api.Resize();
me.api.zoomFitToPage();
me.api.asc_GetDefaultTableStyles && _.defer(function () {me.api.asc_GetDefaultTableStyles()});
}
me.applyLicense();

View file

@ -76,13 +76,6 @@ define([
initEvents: function () {
var me = this;
if (!_initDefaultStyles) {
_initDefaultStyles = true;
_styles = [];
me.api.asc_GetDefaultTableStyles && me.api.asc_GetDefaultTableStyles();
}
$('#add-table li').single('click', _.buffered(me.onStyleClick, 100, me));
},
@ -165,6 +158,10 @@ define([
// API handlers
onApiInitTemplates: function(templates){
if (!_initDefaultStyles) {
_initDefaultStyles = true;
_styles = [];
}
if (_styles.length < 1) {
_.each(templates, function(template){
_styles.push({