From 661825ace9eb5c69ff967778e871c5c92d5292a2 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 19 Sep 2022 00:50:24 +0300 Subject: [PATCH] Fix Bug 59097 --- .../main/lib/view/ListSettingsDialog.js | 31 ++++++++++--------- apps/presentationeditor/main/locale/hy.json | 2 +- apps/spreadsheeteditor/main/locale/hy.json | 2 +- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/apps/common/main/lib/view/ListSettingsDialog.js b/apps/common/main/lib/view/ListSettingsDialog.js index 9fe04b56a..8a0feeecb 100644 --- a/apps/common/main/lib/view/ListSettingsDialog.js +++ b/apps/common/main/lib/view/ListSettingsDialog.js @@ -60,7 +60,7 @@ define([ Common.Views.ListSettingsDialog = Common.UI.Window.extend(_.extend({ options: { type: 0, // 0 - markers, 1 - numbers - width: 280, + width: 285, height: 261, style: 'min-width: 240px;', cls: 'modal-dlg', @@ -87,9 +87,9 @@ define([ '', '', '', - '', - '
', - '
', + '', + '
', + '
', '', '', '', @@ -97,8 +97,8 @@ define([ '', '', '', - '', - '
', + '', + '
', '', '', '', @@ -106,7 +106,7 @@ define([ '', '', '', - '', + '', '
', '', '', @@ -117,7 +117,7 @@ define([ '', '', '', - '', + '', '
', '', '', @@ -126,7 +126,7 @@ define([ '', '', '', - '', + '', '
', '', '', @@ -215,7 +215,7 @@ define([ this.cmbBulletFormat = new Common.UI.ComboBoxCustom({ el : $('#id-dlg-list-bullet-format'), menuStyle : 'min-width: 100%;max-height: 183px;', - style : "width: 100px;", + style : "width: 105px;", editable : false, takeFocusOnClose: true, template : _.template(template.join('')), @@ -239,7 +239,7 @@ define([ if (record.get('value')===_BulletTypes.symbol) formcontrol[0].innerHTML = record.get('displayValue') + '' + record.get('symbol') + ''; else if (record.get('value')===_BulletTypes.image) { - formcontrol[0].innerHTML = record.get('displayValue') + ''; + formcontrol[0].innerHTML = record.get('displayValue') + ''; var bullet = new Asc.asc_CBullet(); bullet.asc_fillBulletImage(me.imageProps.id); bullet.drawSquareImage('id-dlg-list-bullet-combo-preview'); @@ -278,6 +278,9 @@ define([ idx = store.indexOf(store.findWhere({value: _BulletTypes.newSymbol})); store.add({ displayValue: me.txtSymbol + ': ', value: _BulletTypes.symbol, symbol: props.symbol, font: props.font }, {at: idx}); } + if (me.imageProps) + me.imageProps.redraw = true; + combo.setData(store.models); combo.selectRecord(combo.store.findWhere({value: _BulletTypes.symbol, symbol: props.symbol, font: props.font})); }, @@ -316,7 +319,7 @@ define([ this.spnSize = new Common.UI.MetricSpinner({ el : $window.find('#id-dlg-list-size'), step : 1, - width : 100, + width : 105, value : 100, defaultUnit : '', maxValue : 400, @@ -342,7 +345,7 @@ define([ this.spnStart = new Common.UI.MetricSpinner({ el : $window.find('#id-dlg-list-start'), step : 1, - width : 100, + width : 105, value : 1, defaultUnit : '', maxValue : 32767, @@ -360,7 +363,7 @@ define([ caption: this.textSelect, style: 'width: 100%;', menu: new Common.UI.Menu({ - style: 'min-width: 100px;', + style: 'min-width: 105px;', maxHeight: 200, additionalAlign: this.menuAddAlign, items: [ diff --git a/apps/presentationeditor/main/locale/hy.json b/apps/presentationeditor/main/locale/hy.json index 97891491a..d3c51c946 100644 --- a/apps/presentationeditor/main/locale/hy.json +++ b/apps/presentationeditor/main/locale/hy.json @@ -435,7 +435,7 @@ "Common.Views.ListSettingsDialog.textFromStorage": "Պահեստից", "Common.Views.ListSettingsDialog.textFromUrl": "URL-ից", "Common.Views.ListSettingsDialog.textNumbering": "Համարակալված", - "Common.Views.ListSettingsDialog.textSelect": "Ընտրել հետեւյալից՝", + "Common.Views.ListSettingsDialog.textSelect": "Ընտրել", "Common.Views.ListSettingsDialog.tipChange": "Փոխել պարբերակը", "Common.Views.ListSettingsDialog.txtBullet": "Պարբերակ", "Common.Views.ListSettingsDialog.txtColor": "Գույն", diff --git a/apps/spreadsheeteditor/main/locale/hy.json b/apps/spreadsheeteditor/main/locale/hy.json index 39ed1e41b..395bc107d 100644 --- a/apps/spreadsheeteditor/main/locale/hy.json +++ b/apps/spreadsheeteditor/main/locale/hy.json @@ -268,7 +268,7 @@ "Common.Views.ListSettingsDialog.textFromStorage": "Պահեստից", "Common.Views.ListSettingsDialog.textFromUrl": "URL-ից", "Common.Views.ListSettingsDialog.textNumbering": "Համարակալված", - "Common.Views.ListSettingsDialog.textSelect": "Ընտրել հետեւյալից՝", + "Common.Views.ListSettingsDialog.textSelect": "Ընտրել", "Common.Views.ListSettingsDialog.tipChange": "Փոխել պարբերակը", "Common.Views.ListSettingsDialog.txtBullet": "Պարբերակ", "Common.Views.ListSettingsDialog.txtColor": "Գույն",