Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs Sencha emptyText未显示_Extjs_Sencha Touch_Sencha Touch 2_Sencha Architect - Fatal编程技术网

Extjs Sencha emptyText未显示

Extjs Sencha emptyText未显示,extjs,sencha-touch,sencha-touch-2,sencha-architect,Extjs,Sencha Touch,Sencha Touch 2,Sencha Architect,我正在使用Sencha Touch 2.4.1作为应用程序。emptyText未显示在列表中,当我通过Safari进行调试时,我发现在包含emptyText div的div上应用了不正确的样式。应用的样式为: <div class ="x-unsized x-list-emptytext x-layout-fit-item x-has-height" id="ext-component-16" style> <div class="x-innerhtml"

我正在使用Sencha Touch 2.4.1作为应用程序。emptyText未显示在列表中,当我通过Safari进行调试时,我发现在包含emptyText div的div上应用了不正确的样式。应用的样式为:

<div class ="x-unsized x-list-emptytext x-layout-fit-item x-has-height" id="ext-component-16" style>
           <div class="x-innerhtml" id="ext-element-140">No Favorites</div>

</div>

不喜欢
我加载数据的方式是进行AJAX调用,获取结果数组并在存储上设置该数组,该数组绑定到列表。我尝试过以编程方式和在Architect中设置空文本

任何解决这一问题的建议都将不胜感激


谢谢

看起来问题在于列表所在的容器上没有设置布局。当我添加布局时,显示的是空文本

尝试使用Ext.getCmp('Ext-component-16')查看initialConfig,使deferEmptyText:false,然后它就会工作。我也尝试了deferEmptyText:false,不幸的是,这并没有解决问题。