PDA

View Full Version : Problem with property collapsible = true on defaulttype when using other type



mhamiache
1 Jul 2013, 6:05 AM
Hi,
I have a column class with a default type of a private class of mine. In this class, i have the property collapsible = true.
When i add a splitter into my column class, I still have the collapsible = true even if i write collapsible = false on my splitter.

Please help!!!

defaultType: 'portlet',


initComponent: function () {
this.callParent();


this.addSplitters();
},


// adds splitters between the column widgets
addSplitters: function () {
var items = this.layout.getLayoutItems(),
len = items.length,
count = 1,
i, item;


// do not add a splitter if there is only one item.
if (len === 1) {
return;
}


for (i = 1; i <= len - 1; i++) {
this.insert(count, {
xtype: 'splitter',
collapsible: false
});


count += 2;
}
}

slemmon
1 Jul 2013, 7:56 AM
I don't know that this is enough information to go on to see where the issue is that you're experiencing. Can you elaborate? Or ideally, can you post a test case that demonstrates the issue you're seeing?

mhamiache
1 Jul 2013, 9:58 PM
I have a container where the layout is vbox.
Inside this container i have the defaultType to a panel where the collapsible is true.
I m trying to put a splitter between those panel but for some reason the collapsible is true on the splitter and there is no way to put the collapsible to false.

Hope it will help

slemmon
2 Jul 2013, 1:08 PM
I see. It looks like what you're seeing is related to this open bug report:
http://www.sencha.com/forum/showthread.php?266649