]> git.joonet.de Git - adminer.git/commitdiff
Schema: Reduce precision to pixels
authorJakub Vrana <jakub@vrana.cz>
Sun, 30 Mar 2025 12:06:38 +0000 (14:06 +0200)
committerJakub Vrana <jakub@vrana.cz>
Mon, 31 Mar 2025 08:09:30 +0000 (10:09 +0200)
adminer/static/editing.js

index 403ec9e25cf5fd3e171a19d86ac68dafb271f457..d200104df5e01760de6eab38d6a709ec11ad1c3d 100644 (file)
@@ -738,7 +738,7 @@ function schemaMouseup(event, db) {
                that = undefined;
                let s = '';
                for (const key in tablePos) {
-                       s += '_' + key + ':' + Math.round(tablePos[key][0] * 10000) / 10000 + 'x' + Math.round(tablePos[key][1] * 10000) / 10000;
+                       s += '_' + key + ':' + Math.round(tablePos[key][0]) + 'x' + Math.round(tablePos[key][1]);
                }
                s = encodeURIComponent(s.substr(1));
                const link = qs('#schema-link');