开发者

Sencha Touch: AutoScroll not working in DataView

开发者 https://www.devze.com 2023-03-11 04:04 出处:网络
I have a DataView that is always displaying the scroller, I need the scroller to work only when the content exceeds the height of the screen. I tried setting the property of autoScroll but it didn\'t

I have a DataView that is always displaying the scroller, I need the scroller to work only when the content exceeds the height of the screen. I tried setting the property of autoScroll but it didn't work. Is there another way?

This is the code of the data view:

  this.dataView = new Ext.DataView({
        store: myStore, 
        autoScroll: true,
        tpl: tpl
  });

if I set scroll to horizontal or scroll to false, it does respond to the command. Even though it doesn't say anything about it on the documentation http://docs.sencha.com/ext-js/4-0/#/api/Ext.view.View

Is there another way to set the scrol开发者_JS百科ler to appear only when necessary?


Fixed by setting the height to 100% in the CSS

0

精彩评论

暂无评论...
验证码 换一张
取 消