From 65c8d8dd36c2cebb19e4ff66d43ccfccff4bcf7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 25 Jan 2023 00:28:00 +0100 Subject: [PATCH] Set width on numeric input instead of the input group Closes #12037 --- sao/src/view/form.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sao/src/view/form.js b/sao/src/view/form.js index 4705d01130..c341cc7e32 100644 --- a/sao/src/view/form.js +++ b/sao/src/view/form.js @@ -2009,7 +2009,8 @@ function eval_pyson(value){ record = this.record; var value = ''; if (this.width !== null){ - this.el.css('width', this.width + 'ch'); + this.input_text.css('width', this.width + 'ch'); + this.input.css('width', (this.width + 5) + 'ch'); } if (field) { value = field.get_client(record, this.factor, this.grouping);