@fto-consult/expo-ui 2.47.4 → 2.47.5
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/package.json
CHANGED
|
@@ -18,8 +18,8 @@ const ScrollViewComponent = React.forwardRef(({virtualized,contentProps,containe
|
|
|
18
18
|
return new Promise((resolve)=>{
|
|
19
19
|
if(layoutRef.current && layoutRef.current.measureInWindow){
|
|
20
20
|
layoutRef.current.measureInWindow((x, y, width, height) => {
|
|
21
|
-
const r = { x, y, width, height };
|
|
22
|
-
setLayout(
|
|
21
|
+
const r = {...Dimensions.get("window"),layout:{ x, y, width, height }};
|
|
22
|
+
setLayout(r);
|
|
23
23
|
hasInitializedRef.current = true;
|
|
24
24
|
resolve(r);
|
|
25
25
|
});
|
|
@@ -45,7 +45,7 @@ const ScrollViewComponent = React.forwardRef(({virtualized,contentProps,containe
|
|
|
45
45
|
},[]);
|
|
46
46
|
|
|
47
47
|
const cStyle = {maxHeight:Math.max(height-100,250),width:'100%'};
|
|
48
|
-
if(isObj(layout.layout) && typeof layout.layout.y =='number'){
|
|
48
|
+
if(isObj(layout.layout) && typeof layout.layout.y =='number' && layout.layout.y>=10){
|
|
49
49
|
const {layout : {x,y}} = layout;
|
|
50
50
|
const minHeight = height - y;
|
|
51
51
|
if(minHeight> 0){
|