Remove widget class on form-item

The widget class is set on the content of the form-item.
Having it twice apply margin or padding twice.
This commit is contained in:
Cédric Krier
2024-09-27 20:49:50 +02:00
parent bf9709d360
commit 3948905844
+1 -1
View File
@@ -589,7 +589,7 @@ function eval_pyson(value){
el = widget.el;
}
var cell = jQuery('<div/>', {
'class': 'form-item ' + (widget ? widget.class_ || '' : ''),
'class': 'form-item',
}).append(el);
cell.css('grid-column', `${this._col} / ${this._col + colspan}`);
cell.css('grid-row', `${this._row} / ${this._row + 1}`);