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
2024-06-03 23:34:26
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
gdycp

Scroll组件未设置高度,设置高度即可解决。

分享
微博
QQ
微信
回复
2024-06-04 22:33:08
相关问题
ScrollFlex加宽高与滑动冲突
650浏览 • 1回复 待解决
在嵌套组件Scroll不生效
639浏览 • 1回复 待解决
Scroll的子组件的展示位置如何调整
708浏览 • 1回复 待解决
如何获取Scroll组件的当前滚动偏移量
570浏览 • 1回复 待解决
show databases显示问题
3344浏览 • 2回复 待解决
组件中如何处理子组件点击事件
1068浏览 • 1回复 待解决
应用组件截图并保存到用户文件
133浏览 • 1回复 待解决
提供类似aar包Activity之间跳转问题
732浏览 • 1回复 待解决
鸿蒙 | Text 内容显示问题
8604浏览 • 5回复 待解决
js canvas转base64编码图片不全
9002浏览 • 1回复 待解决
Text组件是否支持多行显示
569浏览 • 1回复 待解决
有哪位知道字符显示问题
361浏览 • 1回复 待解决