PDA

View Full Version : a problem when a container shift between hidden and visible



marsxu
8 Jul 2010, 1:32 AM
var corePart = new Ext.Container({
hidden:true,
id: 'corePart',
layout: 'form',
items:[items1,item2]
});
var task = new Ext.util.DelayedTask(function(){
items1.setVisible(false);
items2.setVisible(false);
corePart.setVisible(true);
corePart.doLayout();
});
task.delay(1);


They excue well in all browsers but only bad in browse with webkit engine,like Chrome and Safari, the corePart is still hidden after corePart.setVisible(true);

What's reason????

marsxu
8 Jul 2010, 5:42 PM
is anybody can fix this problem?

navahao
14 Feb 2011, 6:49 AM
With Firefox and IE8 is working fine.
Problem when use by chrome.

Please help :((

Navahao

pmatsumura
14 Feb 2011, 6:57 AM
Have you tried using show()?


corePart.show();