             //default scroll policies are off
             this.verticalScrollPolicy = ScrollPolicy.OFF;
             this.horizontalScrollPolicy = ScrollPolicy.OFF;
+
+            addEventListener(EffectEvent.EFFECT_END, onEffectEnd);
         }
 
         protected function createOrReplaceHeaderButton():void {

            }
            
            resize = new Resize(this);
            resize.heightTo = Math.min(maxHeight, measuredHeight);

            resize.duration = duration;
            
            resize.play();
        }

        /**

		 * @private
		 */
		private var resize:Resize;

        /**
         * @private
         */
        private var resizeInstance:ResizeInstance;

        /**
         * @private
         */
        private var resetExplicitHeight:Boolean;
		
        /**
         * @private
         */
        protected function runResizeEffect():void {
			if(resize && resize.isPlaying) {
                // before the call to end() returns, the onEffectEnd method will have been called
                // for the currently playing resize.
				resize.end();
			}
			
