如何在删除sencha中的项目后更新面板

时间:2011-09-17 16:29:54

标签: extjs

我使用sencha更新面板如下。 我将有一个按钮的处理程序。 我正在从面板中移除一个停靠的面板。然后将一些新面板添加为停靠项目。 但小组的内容没有出现。它们仅在我改变浏览器窗口的大小时出现,即最大化或恢复它。 如何解决问题? 问题的代码如下所示。

 handler: function(){
        chaptersPanel.removeDocked(chaptersList[chaptersPanel.getStory()]);
        chaptersPanel.insertDocked(0,chaptersList[this.no]);
        chaptersPanel.setStory(this.no);
        chaptersPanel.doLayout();
        mainPanel.setActiveItem("chaptersPanel");   
        }

1 个答案:

答案 0 :(得分:0)

你有时需要做一个doComponentLayout()。 Sencha Touch对此很有兴趣。 doLayout应该处理componentlayout,但它并不总是

相关问题