`
GaoJimmy
  • 浏览: 100830 次
  • 性别: Icon_minigender_1
  • 来自: 昆明
社区版块
存档分类
最新评论

问题总结(持续更新中)

阅读更多

 

  1. field未显示label——field只在layout为form时,显示label
  2. 发现应用总是去连www.sencha.com——未设置Ext.BLANK_IMAGE_URL
  3. 没使用xtype来延迟初始化(lazy instantiation)——浪费内存
  4. getXTypes()没有得到继承结构——扩展类是忘记注册 Ext.reg()

(例如 

ntbmsBasicCustomFormPanel扩展了FormPanel,调用getXTypes()应该得到 ——component/box/container/panel/form/ntbmsBasicCustomFormPanel

但是只得到——ntbmsCustomFormPanel

)

     5.   Ext can't automatically detect if a vertical scrollbar will appear, so the only solution is to reserve room for the vertical scrollbar (e.g. by using a scrollOffset or a negative anchor in a layout).

       layoutConfig: {scrollOffset: Ext.getScrollBarWidth()}

       或者

      defaults: {anchor: '-' + Ext.getScrollBarWidth()}

     参看:

      http://www.sencha.com/forum/showthread.php?116524-Understanding-scrollbars&highlight=scrollOffset

 

http://www.sencha.com/forum/showthread.php?117624-autoScroll-option-displays-horizontal-and-vertical-bar-only-need-vertical-bar.&highlight=form+scroll

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics