I have added a spotlight to parentPanel and an updateSpot method which is triggered every time I change the active panel. The idea is to use the spotlight when ePanel is activated:
====
spot: new Ext.ux.Spotlight({easing:'easeOut', duration: .3}),
updateSpot: function(id){
if(typeof id == 'string'){
this.spot.show(id);
}else if (!id && this.spot.active){
this.spot.hide();
}
},
====
Problem: It seems the spotlight is not bound to the active panel. So whenever the scrollbar is used the page moves but the spot stays static.
Moreover, when vPanel is smaller than ePanel and ePanel is not fully displayed in the screen (when page is bigger then the screen), the spotlight created has the vPanel size, but I'm calling my updateSpot method after setting ePanel active and after doLayout().
Have you ever faced this problem? Any clue how to solve it?