From 7d4c913be9f090046aec640a8b2a5aac6269a1d3 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Mon, 28 Nov 2022 16:41:25 +0300 Subject: [PATCH] [rtl] Fix dialogs from toolbar for PE and DE --- .../common/main/lib/view/InsertTableDialog.js | 5 +- .../less/advanced-settings-window.less | 10 ++++ .../main/resources/less/combo-dataview.less | 7 +++ .../main/app/view/DateTimeDialog.js | 3 +- .../resources/less/advanced-settings.less | 10 ++++ .../main/app/view/Animation.js | 2 +- .../main/app/view/DateTimeDialog.js | 3 +- .../main/app/view/GridSettings.js | 4 +- .../main/app/view/HyperlinkSettingsDialog.js | 4 +- .../main/app/view/Transitions.js | 2 +- .../resources/less/advanced-settings.less | 57 +++++++++++++++++++ .../main/resources/less/animation.less | 12 ++++ 12 files changed, 109 insertions(+), 10 deletions(-) diff --git a/apps/common/main/lib/view/InsertTableDialog.js b/apps/common/main/lib/view/InsertTableDialog.js index 39521c44f..0c77d0301 100644 --- a/apps/common/main/lib/view/InsertTableDialog.js +++ b/apps/common/main/lib/view/InsertTableDialog.js @@ -51,6 +51,7 @@ define([ height: 157, style: 'min-width: 230px;', cls: 'modal-dlg', + id: 'window-insert-table', split: false, buttons: ['ok', 'cancel'] }, @@ -63,10 +64,10 @@ define([ this.template = [ '
', '
', - '
', + '
', '
', '
', - '
', + '
', '
', '
' ].join(''); diff --git a/apps/common/main/resources/less/advanced-settings-window.less b/apps/common/main/resources/less/advanced-settings-window.less index 68c983069..73896257d 100644 --- a/apps/common/main/resources/less/advanced-settings-window.less +++ b/apps/common/main/resources/less/advanced-settings-window.less @@ -122,3 +122,13 @@ } } } + +#window-insert-table { + .columns-val, .rows-val { + float: right; + + .rtl & { + float: left; + } + } +} diff --git a/apps/common/main/resources/less/combo-dataview.less b/apps/common/main/resources/less/combo-dataview.less index eff057003..731eb9ef8 100644 --- a/apps/common/main/resources/less/combo-dataview.less +++ b/apps/common/main/resources/less/combo-dataview.less @@ -450,6 +450,13 @@ .view { margin-right: -@combo-dataview-button-width; padding-right: calc(@combo-dataview-button-width - @scaled-one-px-value); + + .rtl & { + margin-right: 0; + padding-right: 0; + margin-left: -@combo-dataview-button-width; + padding-left: calc(@combo-dataview-button-width - @scaled-one-px-value); + } } .view .dataview, .dropdown-menu { diff --git a/apps/documenteditor/main/app/view/DateTimeDialog.js b/apps/documenteditor/main/app/view/DateTimeDialog.js index 80253793d..c1f62237f 100644 --- a/apps/documenteditor/main/app/view/DateTimeDialog.js +++ b/apps/documenteditor/main/app/view/DateTimeDialog.js @@ -50,6 +50,7 @@ define([ width: 350, style: 'min-width: 230px;', cls: 'modal-dlg', + id: 'window-date-time', buttons: ['ok', 'cancel'] }, @@ -73,7 +74,7 @@ define([ '
', '
', '
', - '', + '', '
', '' ].join(''); diff --git a/apps/documenteditor/main/resources/less/advanced-settings.less b/apps/documenteditor/main/resources/less/advanced-settings.less index bc4a1fa99..a87187bca 100644 --- a/apps/documenteditor/main/resources/less/advanced-settings.less +++ b/apps/documenteditor/main/resources/less/advanced-settings.less @@ -297,4 +297,14 @@ padding-left: 15px; } } +} + +#window-date-time { + #datetime-dlg-default { + float: right; + + .rtl & { + float: left; + } + } } \ No newline at end of file diff --git a/apps/presentationeditor/main/app/view/Animation.js b/apps/presentationeditor/main/app/view/Animation.js index 4358439fb..414c2afb3 100644 --- a/apps/presentationeditor/main/app/view/Animation.js +++ b/apps/presentationeditor/main/app/view/Animation.js @@ -225,7 +225,7 @@ define([ if (menu.cmpEl) { menu.menuAlignEl = cmp.cmpEl; - menu.menuAlign = 'tl-tl'; + menu.menuAlign = Common.UI.isRTL() ? 'tr-tr' : 'tl-tl'; menu.cmpEl.css({ 'width': cmp.cmpEl.width() - cmp.openButton.$el.width(), 'min-height': cmp.cmpEl.height() diff --git a/apps/presentationeditor/main/app/view/DateTimeDialog.js b/apps/presentationeditor/main/app/view/DateTimeDialog.js index e170cb6d1..46a98c990 100644 --- a/apps/presentationeditor/main/app/view/DateTimeDialog.js +++ b/apps/presentationeditor/main/app/view/DateTimeDialog.js @@ -50,6 +50,7 @@ define([ width: 350, style: 'min-width: 230px;', cls: 'modal-dlg', + id: 'window-date-time', buttons: ['ok', 'cancel'] }, @@ -73,7 +74,7 @@ define([ '
', '
', '
', - '', + '', '
', '' ].join(''); diff --git a/apps/presentationeditor/main/app/view/GridSettings.js b/apps/presentationeditor/main/app/view/GridSettings.js index c39cab567..66f7923de 100644 --- a/apps/presentationeditor/main/app/view/GridSettings.js +++ b/apps/presentationeditor/main/app/view/GridSettings.js @@ -64,8 +64,8 @@ define([ '
', '', '
', - '
', - '
', + '
', + '
', '', '
' ].join(''); diff --git a/apps/presentationeditor/main/app/view/HyperlinkSettingsDialog.js b/apps/presentationeditor/main/app/view/HyperlinkSettingsDialog.js index ba97812f9..0e9ac49e5 100644 --- a/apps/presentationeditor/main/app/view/HyperlinkSettingsDialog.js +++ b/apps/presentationeditor/main/app/view/HyperlinkSettingsDialog.js @@ -71,8 +71,8 @@ define([ this.template = [ '
', '
', - '', - '', + '', + '', '
', '