From 85d6e5239f4329cbf4a5706dbed7c05fb7f522db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 19 Apr 2018 00:13:44 +0200 Subject: [PATCH] Move max-width CSS Integer to apply only on form The rule breaks the display of the widget on editable tree as it should expand to the width of the cell. issue7357 review47331002 --- src/sao.less | 5 +++++ src/view/form.js | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sao.less b/src/sao.less index a2c82bc349..caea1d484d 100644 --- a/src/sao.less +++ b/src/sao.less @@ -233,6 +233,11 @@ img.icon { min-width: 8em; } } + & .form-integer, .form-float { + & input { + max-width: 8em; + } + } & .form-url, .form-email, .form-callto, .form-sip { & a > img { width: 1em; diff --git a/src/view/form.js b/src/view/form.js index 28e46563e3..b74da5754a 100644 --- a/src/view/form.js +++ b/src/view/form.js @@ -1607,7 +1607,6 @@ function eval_pyson(value){ init: function(field_name, model, attributes) { Sao.View.Form.Integer._super.init.call(this, field_name, model, attributes); - this.input.css('max-width', 8); this.input_text = this.input.clone().appendTo(this.group); this.input_text.attr('type', 'text'); this.input.attr('type', 'number');