diff --git a/apps/documenteditor/main/app/view/TextArtSettings.js b/apps/documenteditor/main/app/view/TextArtSettings.js index 868ebc5a9..58beba4ab 100644 --- a/apps/documenteditor/main/app/view/TextArtSettings.js +++ b/apps/documenteditor/main/app/view/TextArtSettings.js @@ -89,7 +89,8 @@ define([ GradColor: '000000', GradFillType: Asc.c_oAscFillGradType.GRAD_LINEAR, FormId: null, - DisabledControls: false + DisabledControls: false, + applicationPixelRatio: Common.Utils.applicationPixelRatio() }; this.lockedControls = []; this._locked = false; @@ -121,6 +122,8 @@ define([ this.FillColorContainer = $('#textart-panel-color-fill'); this.FillGradientContainer = $('#textart-panel-gradient-fill'); this.TransparencyContainer = $('#textart-panel-transparent-fill'); + + $(window).on('resize', _.bind(this.onWindowResize, this)); }, setApi: function(api) { @@ -1126,22 +1129,17 @@ define([ }, fillTransform: function(transforms) { - if (transforms && transforms.length>1 && transforms[1]){ - var me = this, - artStore = [], - arrTransforms = transforms[1]; - for (var i=0; i0) - _.each(arr, function(item){ - artStore.push({ - imageUrl: item.Image, - type : item.Type, - selected: false - }); - }); + if (transforms){ + var artStore = []; + for (var i=0; i 0) { this.cmbTransform.fillComboView(this.cmbTransform.menuPicker.store.at(0),true); } @@ -1294,6 +1292,13 @@ define([ } }, + onWindowResize: function() { + if (!this._initSettings && this._state.applicationPixelRatio !== Common.Utils.applicationPixelRatio()) + this.fillTransform(this.api.asc_getPropertyEditorTextArts()); + + this._state.applicationPixelRatio = Common.Utils.applicationPixelRatio(); + }, + txtNoBorders : 'No Line', strStroke : 'Stroke', strColor : 'Color', diff --git a/apps/presentationeditor/main/app/view/TextArtSettings.js b/apps/presentationeditor/main/app/view/TextArtSettings.js index cc71d911c..5abd60a1a 100644 --- a/apps/presentationeditor/main/app/view/TextArtSettings.js +++ b/apps/presentationeditor/main/app/view/TextArtSettings.js @@ -93,7 +93,8 @@ define([ GradColor: '000000', GradFillType: Asc.c_oAscFillGradType.GRAD_LINEAR, FormId: null, - DisabledControls: false + DisabledControls: false, + applicationPixelRatio: Common.Utils.applicationPixelRatio() }; this.lockedControls = []; this._locked = false; @@ -134,6 +135,7 @@ define([ el.html(this.template({ scope: this })); + $(window).on('resize', _.bind(this.onWindowResize, this)); }, setApi: function(api) { @@ -1538,22 +1540,17 @@ define([ }, fillTransform: function(transforms) { - if (transforms && transforms.length>1 && transforms[1]){ - var me = this, - artStore = [], - arrTransforms = transforms[1]; - for (var i=0; i0) - _.each(arr, function(item){ - artStore.push({ - imageUrl: item.Image, - type : item.Type, - selected: false - }); - }); + if (transforms){ + var artStore = []; + for (var i=0; i 0) { this.cmbTransform.fillComboView(this.cmbTransform.menuPicker.store.at(0),true); } @@ -1727,6 +1724,13 @@ define([ } }, + onWindowResize: function() { + if (!this._initSettings && this._state.applicationPixelRatio !== Common.Utils.applicationPixelRatio()) + this.fillTransform(this.api.asc_getPropertyEditorTextArts()); + + this._state.applicationPixelRatio = Common.Utils.applicationPixelRatio(); + }, + txtNoBorders : 'No Line', strStroke : 'Stroke', strColor : 'Color', diff --git a/apps/spreadsheeteditor/main/app/view/TextArtSettings.js b/apps/spreadsheeteditor/main/app/view/TextArtSettings.js index b0b4b315c..31d6dd13b 100644 --- a/apps/spreadsheeteditor/main/app/view/TextArtSettings.js +++ b/apps/spreadsheeteditor/main/app/view/TextArtSettings.js @@ -94,7 +94,8 @@ define([ GradColor: '000000', GradFillType: Asc.c_oAscFillGradType.GRAD_LINEAR, FormId: null, - DisabledControls: false + DisabledControls: false, + applicationPixelRatio: Common.Utils.applicationPixelRatio() }; this.lockedControls = []; this._locked = false; @@ -135,6 +136,7 @@ define([ el.html(this.template({ scope: this })); + $(window).on('resize', _.bind(this.onWindowResize, this)); }, setApi: function(api) { @@ -1543,22 +1545,17 @@ define([ }, fillTransform: function(transforms) { - if (transforms && transforms.length>1 && transforms[1]){ - var me = this, - artStore = [], - arrTransforms = transforms[1]; - for (var i=0; i0) - _.each(arr, function(item){ - artStore.push({ - imageUrl: item.Image, - type : item.Type, - selected: false - }); - }); + if (transforms){ + var artStore = []; + for (var i=0; i 0) { this.cmbTransform.fillComboView(this.cmbTransform.menuPicker.store.at(0),true); } @@ -1730,6 +1727,13 @@ define([ } }, + onWindowResize: function() { + if (!this._initSettings && this._state.applicationPixelRatio !== Common.Utils.applicationPixelRatio()) + this.fillTransform(this.api.asc_getPropertyEditorTextArts()); + + this._state.applicationPixelRatio = Common.Utils.applicationPixelRatio(); + }, + txtNoBorders : 'No Line', strStroke : 'Stroke', strColor : 'Color',