diff --git a/app/modules/cupang/templates/cupang/box_calc.html b/app/modules/cupang/templates/cupang/box_calc.html index 0172a88..d7adc52 100644 --- a/app/modules/cupang/templates/cupang/box_calc.html +++ b/app/modules/cupang/templates/cupang/box_calc.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
@@ -1066,7 +1066,27 @@ syncConfirm(); } - function render() { renderSummary(); renderDist(); } + // ── 스크롤 영역 높이 고정 ────────────────────────── + // CSS(flex/grid) 만으로는 브라우저에 따라 높이가 안 잡혀 카드가 계속 + // 늘어난다. 화면에서 실제 위치를 재서 max-height 를 픽셀로 지정한다. + function fitScrollAreas() { + var panes = [ + document.querySelector(".cpg-calc-card .erp-table-wrap"), + document.querySelector(".cpg-calc-sum .cpg-sum-scroll"), + distList + ]; + panes.forEach(function (el) { + if (!el) return; + var top = el.getBoundingClientRect().top; + var h = Math.max(160, window.innerHeight - top - 24); + el.style.maxHeight = h + "px"; + el.style.overflowY = "auto"; + }); + } + + window.addEventListener("resize", fitScrollAreas); + + function render() { renderSummary(); renderDist(); fitScrollAreas(); } // ── 수량 대화상자 ───────────────────────────────── function openDialog(key, centerId) { diff --git a/app/modules/cupang/templates/cupang/box_rules.html b/app/modules/cupang/templates/cupang/box_rules.html index 8fb093f..7d6662b 100644 --- a/app/modules/cupang/templates/cupang/box_rules.html +++ b/app/modules/cupang/templates/cupang/box_rules.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/modules/cupang/templates/cupang/centers.html b/app/modules/cupang/templates/cupang/centers.html index fa24c6e..0158f3b 100644 --- a/app/modules/cupang/templates/cupang/centers.html +++ b/app/modules/cupang/templates/cupang/centers.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/modules/cupang/templates/cupang/index.html b/app/modules/cupang/templates/cupang/index.html index 8b98e31..aca1900 100644 --- a/app/modules/cupang/templates/cupang/index.html +++ b/app/modules/cupang/templates/cupang/index.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/modules/cupang/templates/cupang/products.html b/app/modules/cupang/templates/cupang/products.html index a1fc1f0..27fa257 100644 --- a/app/modules/cupang/templates/cupang/products.html +++ b/app/modules/cupang/templates/cupang/products.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/modules/cupang/templates/cupang/view.html b/app/modules/cupang/templates/cupang/view.html index 8d7d6db..c09a2cb 100644 --- a/app/modules/cupang/templates/cupang/view.html +++ b/app/modules/cupang/templates/cupang/view.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %} {# 출고 묶음 보기 — 상자 계산 화면과 같은 3열 구성. 읽기 전용(수정 없음). #}