@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/dist/index.js
CHANGED
|
@@ -1880,12 +1880,12 @@ function mr({ parent: t, selectedItem: s, list: i, filteredList: d, onSelect: c,
|
|
|
1880
1880
|
const _ = t.current.getBoundingClientRect(), r = window.innerHeight - _.bottom, e = _.top;
|
|
1881
1881
|
return r < l && e > l ? {
|
|
1882
1882
|
top: void 0,
|
|
1883
|
-
left: _.left,
|
|
1883
|
+
left: _.left + window.scrollX,
|
|
1884
1884
|
bottom: window.innerHeight - _.top - window.scrollY,
|
|
1885
1885
|
height: 0
|
|
1886
1886
|
} : {
|
|
1887
1887
|
top: _.bottom + window.scrollY,
|
|
1888
|
-
left: _.left,
|
|
1888
|
+
left: _.left + window.scrollX,
|
|
1889
1889
|
bottom: void 0,
|
|
1890
1890
|
height: 0,
|
|
1891
1891
|
scroll: window.scrollY
|
|
@@ -1907,12 +1907,12 @@ function mr({ parent: t, selectedItem: s, list: i, filteredList: d, onSelect: c,
|
|
|
1907
1907
|
const r = t.current.getBoundingClientRect(), e = window.innerHeight - r.bottom, h = r.top;
|
|
1908
1908
|
e < l && h > l ? n({
|
|
1909
1909
|
top: void 0,
|
|
1910
|
-
left: r.left,
|
|
1910
|
+
left: r.left + window.scrollX,
|
|
1911
1911
|
bottom: window.innerHeight - r.top - window.scrollY,
|
|
1912
1912
|
height: l
|
|
1913
1913
|
}) : n({
|
|
1914
1914
|
top: r.bottom + window.scrollY,
|
|
1915
|
-
left: r.left,
|
|
1915
|
+
left: r.left + window.scrollX,
|
|
1916
1916
|
bottom: void 0,
|
|
1917
1917
|
height: l
|
|
1918
1918
|
});
|