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');