2011-04-29 68 views
0

我嘗試在浮動模式中心面板內部獲得selectfield,但當單擊以選中時,「母親」面板關閉,選擇字段的面板保持不變。如何獲得工作面板內的選擇區域(sencha touch)

if (!this.popup) { 
       this.popup = new Ext.Panel({ 
        floating: true, 
        modal: true, 
        centered: true, 
        width: 390, 
        height: heightOfPopUp, 
        styleHtmlContent: true, 
        scroll: 'vertical', 
items: [{ 
           xtype: 'selectfield', 
           name: 'options', 
           options: [ 
            {text: 'This is just a big select', value: '1'}, 
            {text: 'Another select item', value: '2'} 
           ] 
          }]... 

我究竟做錯了什麼?

thnx!

回答

2

嘗試添加該到面板的選項:

hideOnMaskTap: false, 
+0

日Thnx - 你是男人! – headkit 2011-05-06 11:46:57

+0

對此行爲的任何解釋? – 2013-12-16 01:59:40

相關問題