From 5e7cfa239c89db2edb9bede7908b776e0e646a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 23 Nov 2020 23:45:22 +0100 Subject: [PATCH] Do not display form symbol in edited cell issue9818 review312901002 --- src/sao.less | 4 ++++ src/view/tree.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/sao.less b/src/sao.less index 736d231b82..2dd180512d 100644 --- a/src/sao.less +++ b/src/sao.less @@ -441,6 +441,10 @@ img.icon { display: flex; justify-content: space-between; + > * { + align-self: center; + } + .widget, .widget-editable { min-width: 0; flex-grow: 2; diff --git a/src/view/tree.js b/src/view/tree.js index 894ffdb47e..15d36697c3 100644 --- a/src/view/tree.js +++ b/src/view/tree.js @@ -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);