Merge pull request #10050 from scmmishra/barcode-width
fix: Override barcode svg width to fit in html area
This commit is contained in:
commit
4bddb0b9f6
1 changed files with 1 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ frappe.ui.form.ControlBarcode = frappe.ui.form.ControlData.extend({
|
|||
const svg = this.barcode_area.find('svg')[0];
|
||||
JsBarcode(svg, value, this.get_options(value));
|
||||
$(svg).attr('data-barcode-value', value);
|
||||
$(svg).attr('width', '100%');
|
||||
return this.barcode_area.html();
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue