 		 * @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();
 			}
 			

	import mx.core.LayoutContainer;
	import mx.core.ScrollPolicy;
	import mx.effects.Resize;
	import mx.styles.CSSStyleDeclaration;
	import mx.styles.StyleManager;
	import mx.utils.StringUtil;

            //default scroll policies are off
            this.verticalScrollPolicy = ScrollPolicy.OFF;
            this.horizontalScrollPolicy = ScrollPolicy.OFF;

            addEventListener(EffectEvent.EFFECT_END, onEffectEnd);
        }

        protected function createOrReplaceHeaderButton():void {
