diff --git a/addons/website/static/src/css/editor.css b/addons/website/static/src/css/editor.css index 2ad22e318f7..5b20d85c69f 100644 --- a/addons/website/static/src/css/editor.css +++ b/addons/website/static/src/css/editor.css @@ -387,14 +387,14 @@ table.editorbar-panel td.selected { .oe_ace_view_editor { position: fixed; top: 51px; - right: 0px; - height: 100%; + right: 0; z-index: 1000; + height: 100%; } .oe_ace_view_editor .oe_ace_view_editor_title { width: 100%; padding-left: 2px; - height: 3em; + height: 34px; background-color: #111111; } .oe_ace_view_editor .oe_ace_view_editor_title .oe_view_list { @@ -402,9 +402,9 @@ table.editorbar-panel td.selected { } .oe_ace_view_editor .ace_editor { position: absolute; - top: 3em; + top: 34px; right: 0; - bottom: 0; + bottom: 51px; left: 0; width: 720px; } diff --git a/addons/website/static/src/css/editor.sass b/addons/website/static/src/css/editor.sass index 2ce32a8a6bb..e4edcd3c62e 100644 --- a/addons/website/static/src/css/editor.sass +++ b/addons/website/static/src/css/editor.sass @@ -333,21 +333,21 @@ $remove_color: $icon_close .oe_ace_view_editor position: fixed top: 51px - right: 0px - height: 100% + right: 0 z-index: 1000 + height: 100% .oe_ace_view_editor_title width: 100% padding-left: 2px - height: 3em + height: 34px background-color: #111 .oe_view_list width: 50% .ace_editor position: absolute - top: 3em + top: 34px right: 0 - bottom: 0 + bottom: 51px left: 0 width: 720px diff --git a/addons/website/static/src/js/website.ace.js b/addons/website/static/src/js/website.ace.js index 33dc755286c..0de6ad8cde3 100644 --- a/addons/website/static/src/js/website.ace.js +++ b/addons/website/static/src/js/website.ace.js @@ -65,8 +65,8 @@ method: 'read', args: [[this.$viewList.val()], ['arch']] }).then(function(result) { - var prettyfied = vkbeautify.xml(result[0].arch, " "); - var editingSession = new ace.EditSession(prettyfied + "\n"); + var prettyfied = vkbeautify.xml(result[0].arch, 4); + var editingSession = new ace.EditSession(prettyfied); editingSession.setMode("ace/mode/xml"); editingSession.setUndoManager(new ace.UndoManager()); editor.setSession(editingSession);