diff options
| author | Adrien Dieudonne <adr@odoo.com> | 2016-11-29 14:56:51 +0100 |
|---|---|---|
| committer | Adrien Dieudonne <adr@odoo.com> | 2016-12-01 14:38:39 +0100 |
| commit | 6326ec3eeb132b06ab0ed1cf6f9cf00e294366df (patch) | |
| tree | 20aa05ad7af78747f9a2c72a4d4b00a35c4453d4 /addons/web_editor/static/src/less/web_editor.ui.components.less | |
| parent | ed22e0fb84d3b3b3db6bd307e6f2e5fcc2e5d734 (diff) | |
[IMP] web_editor: ace_editor: right resize bar
Before this commit, it's was only possible to resize the width
of the ace editor when it was on the right side of the screen.
In studio, we need to put the ace editor on the left.
So, we needed to add a new resize bar.
For that, we also add a new option to know the position of the
ace_editor.
We also prevent the width of the ace editor from being recorded
too many times in the local storage for nothing.
This is why we added _.debounce.
Diffstat (limited to 'addons/web_editor/static/src/less/web_editor.ui.components.less')
| -rw-r--r-- | addons/web_editor/static/src/less/web_editor.ui.components.less | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/less/web_editor.ui.components.less b/addons/web_editor/static/src/less/web_editor.ui.components.less index de2c49ea5d2..2f8efdac468 100644 --- a/addons/web_editor/static/src/less/web_editor.ui.components.less +++ b/addons/web_editor/static/src/less/web_editor.ui.components.less @@ -174,6 +174,12 @@ } } } + .ace_resize_bar { + .o-position-absolute(@right: 0); + width: 25px; + height: 100%; + cursor: ew-resize; + } .ace_scroller.o_error::after { .o-position-absolute(0, auto, 0, 0); width: 3px; |
