ekatz
13 Aug 2007, 9:57 AM
I'm sure there is an answer to this one, but why does there seem to be such a delay between when I click on the color picker and when the method for "select" seems to fire? It only happens the first time, as if the document hasn't fully loaded even though this is done in Ext.onReady. thoughts please?
var cp = new Ext.ColorPalette({value:'993300'}); // initial selected color
cp.render('my-div');
cp.on('select', function(palette, selColor){
alert(selColor);//why the delay the first time this is run?
});
var cp = new Ext.ColorPalette({value:'993300'}); // initial selected color
cp.render('my-div');
cp.on('select', function(palette, selColor){
alert(selColor);//why the delay the first time this is run?
});