Set the same width to input and its group

Such that the suffix are next to the input.

Closes #12821
This commit is contained in:
Cédric Krier
2023-12-12 11:47:07 +01:00
parent 8d9156df84
commit 8197d55ed1
+2 -1
View File
@@ -1635,7 +1635,7 @@ function eval_pyson(value){
if (record) {
length = record.expr_eval(this.attributes.size);
if (length > 0) {
width = null;
width = (length + 5) + 'ch';
}
}
this.input.val(this.get_client_value());
@@ -2053,6 +2053,7 @@ function eval_pyson(value){
if (this.width !== null){
this.input_text.css('width', this.width + 'ch');
this.input.css('width', (this.width + 5) + 'ch');
this.group.css('width', (this.width + 5) + 'ch');
}
if (field) {
value = field.get_client(record, this.factor, this.grouping);