From fb3efad88e48a0f8dddb9bb04bf86a619e112bed Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Wed, 16 Nov 2022 22:12:04 +0300 Subject: [PATCH] [rtl] Fix settings in dialogs from toolbar for SSE --- .../common/main/lib/view/SymbolTableDialog.js | 20 +-- .../main/resources/less/symboltable.less | 63 +++++++++ .../main/app/view/CreatePivotDialog.js | 5 +- .../main/app/view/ExternalLinksDlg.js | 4 +- .../main/app/view/HyperlinkSettingsDialog.js | 25 ++-- .../main/app/view/ProtectDialog.js | 4 +- .../resources/less/advanced-settings.less | 124 ++++++++++++++++++ 7 files changed, 217 insertions(+), 28 deletions(-) diff --git a/apps/common/main/lib/view/SymbolTableDialog.js b/apps/common/main/lib/view/SymbolTableDialog.js index 008a89954..defc7dd50 100644 --- a/apps/common/main/lib/view/SymbolTableDialog.js +++ b/apps/common/main/lib/view/SymbolTableDialog.js @@ -411,17 +411,17 @@ define([ this.template = [ '
', '
', - '', - '', + '', + '', '
', '
', '', '', - '', - '', @@ -450,17 +450,17 @@ define([ '
', + '', '', '
', '
', + '', '', '
', '
', '', '', - '', - '', '', '', - '', - '', '', @@ -471,7 +471,7 @@ define([ '', '', '', '', @@ -1093,7 +1093,7 @@ define([ oCell.css('border-bottom', 'none'); oRecentsDiv.append(oCell); if(i === (nCols - 1)){ - oCell.css('border-right', 'none'); + oCell.css(Common.UI.isRTL() ? 'border-left' : 'border-right', 'none'); } } }, diff --git a/apps/common/main/resources/less/symboltable.less b/apps/common/main/resources/less/symboltable.less index fbabd91f8..e44f4181c 100644 --- a/apps/common/main/resources/less/symboltable.less +++ b/apps/common/main/resources/less/symboltable.less @@ -24,6 +24,12 @@ cursor: default; overflow:hidden; display: inline-block; + + .rtl & { + border-right: none; + border-left: @scaled-one-px-value-ie solid @border-regular-control-ie; + border-left: @scaled-one-px-value solid @border-regular-control; + } } .cell-selected{ @@ -58,3 +64,60 @@ overflow:hidden; } } + +#symbol-table-symbols { + border-top-right-radius: 0; + border-bottom-right-radius: 0; + + .rtl & { + .border-radius(@border-radius-small); + border-top-left-radius: 0; + border-bottom-left-radius: 0; + } +} + +#symbol-table-special { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + border-left-width: 0; + margin-left: -1px; + + .rtl & { + border: @scaled-one-px-value solid @border-regular-control; + .border-radius(@border-radius-small); + margin-left: 0; + border-top-right-radius: 0; + border-bottom-right-radius: 0; + border-right-width: 0; + margin-right: -1px; + } +} + +#symbol-table-pnl-symbols { + .padding-right { + padding-right: 5px; + + .rtl & { + padding-right: 0; + padding-left: 5px; + } + } + + .padding-left { + padding-left: 5px; + + .rtl & { + padding-left: 0; + padding-right: 5px; + } + } +} + +#symbol-table-lbl-shortcut { + float: right; + + .rtl & { + float: left; + } +} + diff --git a/apps/spreadsheeteditor/main/app/view/CreatePivotDialog.js b/apps/spreadsheeteditor/main/app/view/CreatePivotDialog.js index 908ab8bfa..da51ea34b 100644 --- a/apps/spreadsheeteditor/main/app/view/CreatePivotDialog.js +++ b/apps/spreadsheeteditor/main/app/view/CreatePivotDialog.js @@ -48,7 +48,8 @@ define([ SSE.Views.CreatePivotDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 310, - height: 250 + height: 250, + id: 'window-create-pivot' }, initialize : function(options) { @@ -87,7 +88,7 @@ define([ '', '', '', - '', '', diff --git a/apps/spreadsheeteditor/main/app/view/ExternalLinksDlg.js b/apps/spreadsheeteditor/main/app/view/ExternalLinksDlg.js index 41c7b68b7..84debc043 100644 --- a/apps/spreadsheeteditor/main/app/view/ExternalLinksDlg.js +++ b/apps/spreadsheeteditor/main/app/view/ExternalLinksDlg.js @@ -67,8 +67,8 @@ define([ '
', + '', '', '', + '', '
', + '', '
', '
', + '', '
', '
', '', - '', + '', '
', + '', '
', '
', '', '', diff --git a/apps/spreadsheeteditor/main/app/view/HyperlinkSettingsDialog.js b/apps/spreadsheeteditor/main/app/view/HyperlinkSettingsDialog.js index 9ae19327e..6edc66182 100644 --- a/apps/spreadsheeteditor/main/app/view/HyperlinkSettingsDialog.js +++ b/apps/spreadsheeteditor/main/app/view/HyperlinkSettingsDialog.js @@ -55,6 +55,7 @@ define([ width : 350, style : 'min-width: 230px;', cls : 'modal-dlg', + id : 'window-hyperlink', buttons: ['ok', 'cancel'] }, @@ -65,41 +66,41 @@ define([ this.template = [ '
', - '
', - '', - '', + '
', + '', + '', '
', '', '
', - '', - '', + '', + '', // '', // '', '