From 7603eaa7b914d9868dd31592eaeb019c8435015f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 20 Mar 2015 19:14:04 +0100 Subject: [PATCH] Don't hard-code min-width on form input The input is also used in editable tree which has the property overflow set to hidden so if the cell is not large enough the widget is partialy hidden. --- src/sao.less | 5 +++++ src/view.js | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sao.less b/src/sao.less index 5ec5bd3c61..22144cc962 100644 --- a/src/sao.less +++ b/src/sao.less @@ -58,6 +58,11 @@ & td.form-label { white-space: pre; } + & .form-char, .form-password, .form-integer, .form-float { + & input { + min-width: 8em; + } + } & td.form-one2many, td.form-many2many { vertical-align: top; } diff --git a/src/view.js b/src/view.js index 4e627393c7..14f8ede333 100644 --- a/src/view.js +++ b/src/view.js @@ -1937,7 +1937,6 @@ 'type': 'text', 'class': 'form-control input-sm' }).appendTo(this.el); - this.input.css('min-width', '8em'); this.el.change(this.focus_out.bind(this)); }, display: function(record, field) {