Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

手风琴组件AtAccordion折叠起来保留内容区的高度 #629

Closed
cibaGitHub opened this issue Jun 11, 2019 · 2 comments
Closed

手风琴组件AtAccordion折叠起来保留内容区的高度 #629

cibaGitHub opened this issue Jun 11, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@cibaGitHub
Copy link

问题描述
当AtAccordion内容区的内容高度超过一屏幕,折叠起来页面会保留AtAccordion内容区的高度。导致用户往上一滑下面全是空白处。
使用多个AtAccordion组件,最下面两个AtAccordion组件内容区的高度折叠起来页面也会保留内容区对应的高度

复现步骤

官网手风琴(Accordion )第一个例子,将里面的内容复制到20多个然后点击折叠起来就能看到上述问题
WechatIMG342

import Taro from '@tarojs/taro'
import { View } from '@tarojs/components'
import { AtAccordion, AtList, AtListItem } from 'taro-ui'
export default class Index extends Taro.Component {
constructor () {
super(...arguments)
this.state = {
open: false,
}
}
handleClick (value) {
this.setState({
open: value
})
}
render () {
return (




















)
}
}

期望行为
折叠起来不要有那么多的空白区域

报错信息

系统信息
Taro CLI 1.2.15 environment info:
System:
OS: macOS Sierra 10.12.6
Shell: 5.2 - /bin/zsh
Binaries:
Node: 8.11.3 - /usr/local/bin/node
Yarn: 1.7.0 - /usr/local/bin/yarn
npm: 5.6.0 - /usr/local/bin/npm

"taro-ui": "^2.1.0",

补充信息
style="height:" 是不是这个属性设置高度没有设置为0导致的

@koppthe koppthe added the bug Something isn't working label Jun 12, 2019
@jimczj jimczj closed this as completed in 19e2ea3 Jun 12, 2019
@sumaolin
Copy link

楼上正解

@ember-yang
Copy link

修复好了吗,3.0的还有这个bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants