chiark / gitweb /
webstead: more sensible viewBox for <svg>
authorBen Harris <bjh21@bjh21.me.uk>
Tue, 7 Oct 2025 00:51:13 +0000 (01:51 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Tue, 13 Jan 2026 21:42:18 +0000 (21:42 +0000)
webstead.xhtml

index d01a29726588d071faf51711c781b802a4e1376b..9034518703b9aa5d841e876af2ae197611c30381 100644 (file)
@@ -79,6 +79,7 @@
         for (var e of document.querySelectorAll('#pixels input')) {
             e.onchange = update_glyph;
         }
+        document.querySelector('#inpane').onreset = update_glyph;
         update_glyph();
     }
     import("./bedstead.js").then((module) => {
         </table>
       </form>
       <div id="outpane">
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="100 100 500 1000">
+        <svg xmlns="http://www.w3.org/2000/svg" viewBox="100 100 500 900">
           <g transform="scale(1,-1) translate(0,-800)">
             <path id="rendered" fill="currentColor"/>
           </g>