问题总结(持续更新中)

 

  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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值