当前位置: 代码迷 >> Web前端 >> 有关问题总结(持续更新中)
  详细解决方案

有关问题总结(持续更新中)

热度:263   发布时间:2012-11-22 00:16:41.0
问题总结(持续更新中)

?

  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

?

  相关解决方案