PDA

View Full Version : Combobox within Window Bug?



muselmanach
2 Jun 2012, 2:12 PM
I have the following structure:

window.formpanel.fieldset.combobox

the combobox has a locale store.

the window is draggable. but after selecting any value in the combobox i cant drag my window anymore.

i am creating my window in my desktop version like this:


a=b.createWindow({
id: "container:" + component.id,
title: ext.title,
draggable: true,
width:950,
height:550,
iconCls: iconCls,
animCollapse:false,
border:false,
hideMode:"offsets",
layout:"fit",
items : ext,
autoScroll: false
});

any ideas?

edit: this problem also occurs if i right-click my desktop and get the context menu with tile and cascade. after displaying this contextmenu i am not able to drag my window anymore.

thx
muselmanach

scottmartin
3 Jun 2012, 9:37 AM
This seems to work for me:



var states = Ext.create('Ext.data.Store', {
fields: ['abbr', 'name'],
data : [
{"abbr":"AL", "name":"Alabama"},
{"abbr":"AK", "name":"Alaska"},
{"abbr":"AZ", "name":"Arizona"}
]
});

// Create the combo box, attached to the states data store
var combo = Ext.create('Ext.form.ComboBox', {
fieldLabel: 'Choose State',
store: states,
queryMode: 'local',
displayField: 'name',
valueField: 'abbr',
});

Ext.create('Ext.window.Window', {
title: 'Hello',
height: 100,
width: 300,
layout: 'fit',
items: [ combo ]

}).show();


Regards,
Scott.

muselmanach
3 Jun 2012, 10:32 AM
i guess this problem only occurs in the extop (exjts desktop) version.
i tried to adopt the desktop version for my usage.
i am not using modules, instead i am creating the windows like this:


a=b.createWindow({
id: "container:" + component.id,
title: ext.title,
draggable: true,
width:950,
height:550,
iconCls: iconCls,
animCollapse:false,
border:false,
hideMode:"offsets",
layout:"fit",
items : ext,
autoScroll: false
});

where b is the ext.ux.desktop component