【发布时间】:2013-06-10 12:56:37
【问题描述】:
我浏览了煎茶论坛,发现其他人问过这个问题并得到了回答。但是,我似乎无法重现任何解决方案。我试过了:
Ext.override(Ext.scroll.indicator.CssTransform, {hide: function() {return false;},initialize:function(){this.show();}});
Ext.override(Ext.scroll.indicator.Default, {hide: function() {return false;},initialize:function(){this.show();}});
Ext.override(Ext.scroll.indicator.ScrollPosition, {hide: function() {return false;},initialize:function(){this.show();}});
并尝试过:
Ext.override(Ext.util.Scroller.Indicator, {
hide: function() {
var me = this;
if (this.hideTimer) {
clearTimeout(this.hideTimer);
}
return this;
}
});
下面的这些链接是我想要重现的内容。有没有人运气好让滚动条总是显示在 Sencha Touch 2 中?在 Sencha Architect(在下面的网站中讨论)中将在哪里输入 CSS 技巧?
http://www.sencha.com/forum/showthread.php?146621-Making-List-Scroll-Idicators-show-permanently
http://www.sencha.com/forum/showthread.php?151468-Making-scrollbar-visible-all-the-time
【问题讨论】:
-
Ext.override 在 ST2 中已弃用。您需要将 Ext.define 与覆盖配置一起使用。见docs.sencha.com/touch/2.2.0/#!/api/Ext-method-override可能有帮助
标签: extjs touch sencha-touch-2