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 }) 
          } 
        } 
      } 
    } 
  } 
}
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71.
  • 72.
  • 73.
  • 74.
  • 75.
  • 76.
  • 77.
  • 78.
  • 79.
  • 80.
  • 81.
  • 82.
  • 83.
  • 84.
  • 85.
  • 86.
  • 87.
  • 88.
  • 89.
  • 90.
  • 91.
  • 92.
  • 93.
  • 94.
  • 95.
  • 96.
  • 97.
  • 98.
  • 99.
  • 100.
HarmonyOS
2024-06-03 23:34:26
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
编程指东

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

分享
微博
QQ
微信
回复
2024-06-04 22:33:08
相关问题
HarmonyOS Slider组件气泡提示显示不全
795浏览 • 1回复 待解决
HarmonyOS web显示不全
1173浏览 • 1回复 待解决
HarmonyOS scroll组件问题
914浏览 • 1回复 待解决
HarmonyOS scroll嵌套多个web,显示问题
815浏览 • 1回复 待解决
HarmonyOS Scroll组件使用问题
1165浏览 • 1回复 待解决
HarmonyOS Tabs 控件 底部显示不全
671浏览 • 1回复 待解决
HarmonyOS ListItem嵌套Tabs显示不全
644浏览 • 1回复 待解决
HarmonyOS Scroll组件滚动问题
1439浏览 • 1回复 待解决
HarmonyOS PullToRefresh嵌套的List显示不全
623浏览 • 1回复 待解决
报错问题不全没法定位问题
976浏览 • 1回复 待解决
HarmonyOS Scroll组件回调事件问题
988浏览 • 1回复 待解决
HarmonyOS List展示不全问题
1007浏览 • 1回复 待解决
ScrollFlex加宽高与滑动冲突
2738浏览 • 1回复 待解决
TabContentweb组件滑动问题
816浏览 • 2回复 待解决
HarmonyOS Scroll使用问题
658浏览 • 1回复 待解决
HarmonyOS Scroll 嵌套 RelativeContainer 问题
1247浏览 • 1回复 待解决
HarmonyOS scroll滚动问题
721浏览 • 1回复 待解决