diff --git a/app/assets/js/device-type-shape-editor.js b/app/assets/js/device-type-shape-editor.js index 4515ce6..a4b75c9 100644 --- a/app/assets/js/device-type-shape-editor.js +++ b/app/assets/js/device-type-shape-editor.js @@ -284,17 +284,14 @@ return; } - if (meta.heightHe !== 1) { - return; - } - const preset = FORM_FACTOR_PRESETS[meta.formFactor]; if (!preset) { return; } meta.canvasWidth = Math.max(MIN_CANVAS_WIDTH, preset.width); - meta.canvasHeight = Math.max(MIN_CANVAS_HEIGHT, preset.height); + const targetHeight = Math.round(preset.height * Math.max(1, meta.heightHe)); + meta.canvasHeight = Math.max(MIN_CANVAS_HEIGHT, targetHeight); } function applyOverlayToSelectedShape() {