Hi and thanks for your reply.
You're right, adding a css rule does the trick. I used the onHide method since it gets the visibility element and applies the right css class which I don't really want to hardcode. But adding an opacity changing css would work as well.
Should I report this as a bug then ? I checked in the 3.3.1 codebase and it is still there, I don't know where this is handled in ext 4 or if it reproduces. It would be easily fixed in ext 3 with an override like that :
Code:
Ext.override(Ext.layout.BoxLayout, {
getVisibleItems: function(ct) {
var ct = ct || this.container,
t = ct.getLayoutTarget(),
cti = ct.items.items,
len = cti.length,
i, c, items = [];
for (i = 0; i < len; i++) {
// override: replace c.hidden !== true with (c.hidden !== true || c.hideMode == 'visibility')
if((c = cti[i]).rendered && this.isValidParent(c, t) && (c.hidden !== true || c.hideMode == 'visibility') && c.collapsed !== true && c.shouldLayout !== false){
items.push(c);
}
}
return items;
}
});
Thanks,
J