Scroll组件内显示不全问题
@Entry
@Component
struct ScrollTest {
scroller: Scroller = new Scroller()
build() {
Column() {
Column() {
Text('testText')
.height(100)
Scroll() {
Column() {
Button('Securetest')
.width('100%')
.height(50)
.margin({ bottom: 2 })
.onClick(() => {
})
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test')
.width('100%')
.height(50)
.margin({ bottom: 2 })
Button('test20')
.width('100%')
.height(50)
.margin({ bottom: 2 })
}
}
}
}
}
}
HarmonyOS
赞
收藏 0
回答 1
待解决
相关问题
边界显示不全,是因为设置的问题吗?
4894浏览 • 1回复 待解决
获取Scroll容器组件内指定组件的坐标值
392浏览 • 1回复 待解决
Scroll内Flex加宽高与滑动冲突
650浏览 • 1回复 待解决
为什么许多应用长按图标显示的快捷菜单(shortcut)图标显示不全?
1027浏览 • 0回复 待解决
在嵌套组件中Scroll不生效
639浏览 • 1回复 待解决
Scroll的子组件的展示位置如何调整
708浏览 • 1回复 待解决
Scroll组件如何通过代码的方式停止滚动
507浏览 • 1回复 待解决
瀑布流组件,放在Scroll 组件里面,有性能问题吗,会导致 FlowItem一次全部绘制吗,LazyForeach失去作用
556浏览 • 1回复 待解决
如何实现scroll容器嵌套子组件,实现子组件吸顶效果
533浏览 • 1回复 待解决
如何获取Scroll组件的当前滚动偏移量
570浏览 • 1回复 待解决
show databases显示问题
3344浏览 • 2回复 待解决
父组件中如何处理子组件内点击事件
1068浏览 • 1回复 待解决
stage模型,@Component组件内如何获取UIAbilityContext
661浏览 • 1回复 待解决
在Scroll里面嵌套的tabs组件中添加手势操作
436浏览 • 1回复 待解决
Scroll组件未设置高度时滚动无法到达最底部
693浏览 • 1回复 待解决
应用内组件截图并保存到用户文件
133浏览 • 1回复 待解决
提供类似aar包内Activity之间跳转问题
732浏览 • 1回复 待解决
鸿蒙 | Text 内容显示问题
8604浏览 • 5回复 待解决
Scroll组件如何再加载时自动跳转到指定位置
774浏览 • 1回复 待解决
轻量级js ui,超长文本如何在容器内滚动显示?
2887浏览 • 1回复 待解决
scroll包裹list,scroll可以响应滑动,list不能响应滑动
234浏览 • 1回复 待解决
两个Scroll互相监听彼此的滑动-卡顿问题
1146浏览 • 1回复 待解决
js canvas转base64编码图片不全
9002浏览 • 1回复 待解决
Text组件是否支持多行显示
569浏览 • 1回复 待解决
有哪位知道字符显示问题
361浏览 • 1回复 待解决
Scroll组件未设置高度,设置高度即可解决。