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
按赞同
/
按时间
编程指东

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

分享
微博
QQ
微信
回复
2024-06-04 22:33:08
相关问题
HarmonyOS Slider组件气泡提示显示不全
1037浏览 • 1回复 待解决
HarmonyOS web显示不全
1459浏览 • 1回复 待解决
HarmonyOS scroll组件问题
1189浏览 • 1回复 待解决
HarmonyOS scroll嵌套多个web,显示问题
1072浏览 • 1回复 待解决
HarmonyOS Scroll组件使用问题
1469浏览 • 1回复 待解决
HarmonyOS Tabs 控件 底部显示不全
882浏览 • 1回复 待解决
HarmonyOS ListItem嵌套Tabs显示不全
940浏览 • 1回复 待解决
HarmonyOS Scroll组件滚动问题
1919浏览 • 1回复 待解决
HarmonyOS PullToRefresh嵌套的List显示不全
842浏览 • 1回复 待解决
报错问题不全没法定位问题
1143浏览 • 1回复 待解决
HarmonyOS List展示不全问题
1286浏览 • 1回复 待解决
HarmonyOS Scroll组件回调事件问题
1317浏览 • 1回复 待解决
TabContentweb组件滑动问题
1071浏览 • 2回复 待解决
ScrollFlex加宽高与滑动冲突
2930浏览 • 1回复 待解决
HarmonyOS Scroll使用问题
810浏览 • 1回复 待解决
HarmonyOS Scroll嵌套RelativeContainer 问题
1261浏览 • 1回复 待解决
HarmonyOS scroll滑动问题
1289浏览 • 1回复 待解决
HarmonyOS Scroll组件无法滑动
1428浏览 • 1回复 待解决