2012-03-06 24 views
1

進出口使用的手風琴佈局煎茶觸摸1.0.1從米切爾Simoens混帳鏈接: https://github.com/mitchellsimoens/Ext.layout.AccordionLayout煎茶觸摸手風琴項目留空

我想提出一個形式面板成手風琴項目之一。但是,儘管formPanel中的html顯示,但當我向面板添加項目時,它會變爲空白。

請幫忙!

我的代碼:

var formp = new Ext.form.FormPanel({ 
scroll : "vertical", 
title : "List Test", 
// scrollable : true, 
items : [ 
    { 
     xtype : 'textfield', 
     label : 'hello', 
     id : 'hello', 
     name : 'hello' 
    } 
    ] 
}); 
var panel = new Ext.Panel({ 
     fullscreen : true, 
     scroll  : "vertical", 
     layout  : { 
      type : "accordion" 
     }, 
        minHeight : 300, 
     items: [ 
      { xtype : "panel", title : "One Title", html : "One" }, 
      list, 
      { xtype : "panel", title : "Three Title", html : "Three" }, 
      { xtype : "panel", title : "Four Title", html : "Four" }, 
      { xtype : "panel", title : "Five Title", html : "Five" }, 
      { xtype : "panel", title : "Six Title", html : "Six" } 
     ] 
    }); 

回答

0

我已經更新了這個庫,以解決這個問題我遇到這種佈局工作的一些問題,所以你可以檢查是否能解決你的問題

http://pastebin.com/fGRMBMfn

更新:

new Ext.Application({ 
    launch : function() { 
     var panel = new Ext.Panel({ 
       fullscreen : true, 
       scroll  : "vertical", 
       layout  : { 
        type : "accordion" 
       }, 
       minHeight : 300, 
       renderTo : Ext.getBody(), 
       items: [ 
        { xtype : "panel", title : "One Title", html : "One" }, 
        { xtype : "panel", title : "Three Title", html : "Three" }, 
        { xtype : "panel", title : "Four Title", html : "Four" }, 
        { xtype : "panel", title : "Five Title", html : "Five" }, 
        { xtype : "panel", title : "Six Title", html : "Six" } 
       ] 
      }); 
    } 
}); 
+0

可以給你的代碼.. – Sarath 2012-03-13 12:55:46

+0

抱歉,但我現在沒有它,但我只是更新的庫,我已經將它存儲爲將來的參考:),如果它不工作,你可以試試這個庫,然後我可以嘗試找出問題 – 2012-03-15 08:09:06

+0

我用上面的代碼使用了我的函數庫,它正確地顯示了項目,你還有問題嗎? – 2012-03-17 12:09:36