墙行大于列时虚拟器显示出界的BUG

This commit is contained in:
fangxiang 2022-08-10 11:14:30 +08:00
parent 3a30c70e34
commit 464ab43666
1 changed files with 4 additions and 0 deletions

View File

@ -300,6 +300,10 @@ export default defineComponent({
wall.value.parentElement.offsetWidth / wall.value.parentElement.offsetWidth /
wv_scaler / wv_scaler /
screen_info.desktop_col; screen_info.desktop_col;
if (screen_info.screen_rows > screen_info.screen_cols) {
item_height.value = item_height.value * 0.7;
}
} else { } else {
const wv_scaler = const wv_scaler =
/*$store.state.device_screen_width / $store.state.device_screen_height*/ 1920 / /*$store.state.device_screen_width / $store.state.device_screen_height*/ 1920 /