@jk-core/components 1.1.12 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +7 -7
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/common/DropDown/List.tsx +4 -4
package/package.json
CHANGED
|
@@ -41,7 +41,7 @@ export default function List({ parent, selectedItem, list, filteredList, onSelec
|
|
|
41
41
|
// 위에 열림: bottom 사용, top은 undefined
|
|
42
42
|
return {
|
|
43
43
|
top: undefined,
|
|
44
|
-
left: rect.left,
|
|
44
|
+
left: rect.left + window.scrollX,
|
|
45
45
|
bottom: window.innerHeight - rect.top - window.scrollY,
|
|
46
46
|
height: 0,
|
|
47
47
|
};
|
|
@@ -49,7 +49,7 @@ export default function List({ parent, selectedItem, list, filteredList, onSelec
|
|
|
49
49
|
// 아래에 열림: top 사용, bottom은 undefined
|
|
50
50
|
return {
|
|
51
51
|
top: rect.bottom + window.scrollY,
|
|
52
|
-
left: rect.left,
|
|
52
|
+
left: rect.left + window.scrollX,
|
|
53
53
|
bottom: undefined,
|
|
54
54
|
height: 0,
|
|
55
55
|
scroll: window.scrollY,
|
|
@@ -83,7 +83,7 @@ export default function List({ parent, selectedItem, list, filteredList, onSelec
|
|
|
83
83
|
// 위에 열림
|
|
84
84
|
setPosition({
|
|
85
85
|
top: undefined,
|
|
86
|
-
left: rect.left,
|
|
86
|
+
left: rect.left + window.scrollX,
|
|
87
87
|
bottom: window.innerHeight - rect.top - window.scrollY,
|
|
88
88
|
height: listHeight,
|
|
89
89
|
});
|
|
@@ -91,7 +91,7 @@ export default function List({ parent, selectedItem, list, filteredList, onSelec
|
|
|
91
91
|
// 아래에 열림
|
|
92
92
|
setPosition({
|
|
93
93
|
top: rect.bottom + window.scrollY,
|
|
94
|
-
left: rect.left,
|
|
94
|
+
left: rect.left + window.scrollX,
|
|
95
95
|
bottom: undefined,
|
|
96
96
|
height: listHeight,
|
|
97
97
|
});
|