changeset 3858af214257 in sao:5.8
details: https://hg.tryton.org/sao?cmd=changeset;node=3858af214257
description:
        Do not display form symbol in edited cell

        issue9818
        review312901002
        (grafted from 55e28402924d145073d85bb9069d41cc2fe50a55)
diffstat:

 src/sao.less     |  4 ++++
 src/view/tree.js |  4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diffs (35 lines):

diff -r b2b0f9e9fef3 -r 3858af214257 src/sao.less
--- a/src/sao.less      Mon Nov 23 23:41:16 2020 +0100
+++ b/src/sao.less      Mon Nov 23 23:45:22 2020 +0100
@@ -435,6 +435,10 @@
         display: flex;
         justify-content: space-between;
 
+        > * {
+            align-self: center;
+        }
+
         .widget, .widget-editable {
             min-width: 0;
             flex-grow: 2;
diff -r b2b0f9e9fef3 -r 3858af214257 src/view/tree.js
--- a/src/view/tree.js  Mon Nov 23 23:41:16 2020 +0100
+++ b/src/view/tree.js  Mon Nov 23 23:45:22 2020 +0100
@@ -2647,6 +2647,8 @@
     Sao.View.EditableTree.Integer = Sao.class_(Sao.View.Form.Integer, {
         class_: 'editabletree-integer',
         init: function(view, attributes) {
+            attributes = jQuery.extend({}, attributes);
+            delete attributes.symbol;
             Sao.View.EditableTree.Integer._super.init.call(
                 this, view, attributes);
             Sao.View.EditableTree.editable_mixin(this);
@@ -2659,6 +2661,8 @@
     Sao.View.EditableTree.Float = Sao.class_(Sao.View.Form.Float, {
         class_: 'editabletree-float',
         init: function(view, attributes) {
+            attributes = jQuery.extend({}, attributes);
+            delete attributes.symbol;
             Sao.View.EditableTree.Float._super.init.call(
                 this, view, attributes);
             Sao.View.EditableTree.editable_mixin(this);

Reply via email to