auto=true with textmode=exact produces inaccurate dimensions on load
- Dominant language
- JavaScript
- Stars
- 5.8k
- Forks
- 585
- PR merge metrics
- No merged PRs in 30d
Description
When combining the with auto and textmode parameters I'm seeing an incorrect width and height on first load. Once the browser is resized the correct dimensions are shown, they are always 20x20.
`holder.js/800x355?auto=true&textmode=exact`
An example:

Then once browser is resized:

Note that this is within the Pattern Lab environment so I'm not sure if it applies on a basic static HTML page.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the holder.js/800x355?auto=true&textmode=exact example and compare its initial dimensions with the dimensions after a browser resize. Reproduce the issue outside the Pattern Lab environment if possible; done means the placeholder shows the correct dimensions on first load without requiring a resize.
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
- 35/100