开发者

how to get a selectfield inside of a panel working (sencha touch)

开发者 https://www.devze.com 2023-03-01 19:30 出处:网络
I try to get a selectfield inside a floating, modal centerd panel working but when I click to select, the \"mother\"-panel closes and only the selection-panel of the selectfield stays.

I try to get a selectfield inside a floating, modal centerd panel working but when I click to select, the "mother"-panel closes and only the selection-panel of the selectfield stays.

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'}
                                ]
                          }]... 

what am I doing wrong?

thnx!


Try adding this to the panel options:

hideOnMaskTap: false,
0

精彩评论

暂无评论...
验证码 换一张
取 消