@aks-dev/easyui 1.0.85 → 1.0.86
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.
|
@@ -104,7 +104,7 @@ export default (props: MenuProps) => {
|
|
|
104
104
|
target_height,
|
|
105
105
|
} = getLayoutInfos()
|
|
106
106
|
|
|
107
|
-
const
|
|
107
|
+
const layout = () => {
|
|
108
108
|
if (alignHorizontal == 'left') {
|
|
109
109
|
if (target_width + x > deviceWidth) {
|
|
110
110
|
return {
|
|
@@ -132,17 +132,17 @@ export default (props: MenuProps) => {
|
|
|
132
132
|
}
|
|
133
133
|
if (alignVertical == 'bottom') {
|
|
134
134
|
y = y + 10
|
|
135
|
-
return
|
|
135
|
+
return layout()
|
|
136
136
|
} else {
|
|
137
137
|
y = (StatusBar.currentHeight || 0) + _container.current.y - target_height - 10
|
|
138
|
-
return
|
|
138
|
+
return layout()
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
const show = () => {
|
|
144
144
|
// console.log('_container', _container.current, StatusBar.currentHeight)
|
|
145
|
-
if(props.data == undefined || props.data?.length == 0) return
|
|
145
|
+
if (props.data == undefined || props.data?.length == 0) return
|
|
146
146
|
showPopoverView({
|
|
147
147
|
content: (
|
|
148
148
|
<TouchableOpacity
|