auto width

This commit is contained in:
Robin Appelman 2025-10-06 21:54:21 +02:00
commit 9073a9d217
3 changed files with 52 additions and 16 deletions

View file

@ -31,9 +31,13 @@
<label for="canvas-width">Width</label>
<input type="number" min="0" id="canvas-width" value="300">
<select id="canvas-width-unit">
<option value="px" selected>px</option>
<option value="px">px</option>
<option value="mm">mm</option>
<option value="auto" selected="selected">Auto</option>
</select>
<span id="autoHelp">
Note: only left aligned elements are taking into account for determining the width.
</span>
</p>
<div id='tape'>
<canvas id="preview" height="32" width="300"></canvas>