퍼블 반영 2025-07-22 at 오후 12:06 까지 완료

This commit is contained in:
주수현
2025-07-22 12:09:49 +09:00
parent a3a9d13507
commit 7f9bcc874d
2 changed files with 29 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@@ -2128,7 +2128,7 @@ function SelectBox() {
}; };
actions.close = () => { actions.close = () => {
$target.querySelector(`${selectComboBox} :last-child`).textContent = $target.querySelector(`${selectComboBox} :last-child`).textContent =
$target["options"][$target.selectedIndex]?.textContent ?? props.default; $target["options"]?.[$target.selectedIndex]?.textContent ?? props.default;
closeState(); closeState();
}; };
actions.select = () => { actions.select = () => {
@@ -2284,9 +2284,9 @@ function SelectBox() {
const selectScroll = $target.querySelector('.select-scroll'); const selectScroll = $target.querySelector('.select-scroll');
if (selectOptions && selectHeader && selectScroll) { if (selectOptions && selectHeader && selectScroll) {
// 전체 디바이스 높이의 75% (25% 제외) // 전체 디바이스 높이에서 160px 제외
const deviceHeight = window.innerHeight; const deviceHeight = window.innerHeight;
const targetHeight = deviceHeight * 0.75; const targetHeight = deviceHeight - 160;
// select-header 높이 계산 // select-header 높이 계산
const headerHeight = selectHeader.offsetHeight; const headerHeight = selectHeader.offsetHeight;