[FIX] Ace editor size
bzr revid: ddm@openerp.com-20130910112439-0d5aoddbxa29asf6
This commit is contained in:
parent
969d8fa32e
commit
3ee7b343dc
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue