Barcode value is being cut off
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
## Problem
It looks like this library doesn't calculate the viewbox properly when rendering a jagged UPC barcode with the value printed underneath.
## Example
```js
JsBarcode('#barcode', '673006885997', {
format: 'UPC',
width: 2,
height: 32
});
```
## Expected

## Actual

(Notice the barcode value being cut off at the bottom.)
Contributor guide
Research direction
Start by reproducing the JavaScript example in the issue with format UPC, width 2, and height 32, then inspect the barcode rendering path that calculates the viewBox. Done means the value printed beneath the jagged barcode is fully visible rather than clipped, matching the expected rendering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100