         }
     }
     
-    /**
-     *  @private
-     */
-    private function measuredSizePreliminaryHandler(event:FlexEvent):void
-    {
-        // block the event if there is no icon to display
-        // otherwise the size will not get cached
-        if (iconDisplay && iconDisplay.source == null)
-            event.stopImmediatePropagation();
-    }
-    
 }
     
 }
            _imageCache.enableCaching = true;
            _imageCache.maxCacheEntries = 100;
        }
        
        addEventListener(FlexEvent.MEASURED_SIZE_PRELIMINARY, measuredSizePreliminaryHandler);
    }
    
    //--------------------------------------------------------------------------

import mx.core.UITextField;
import mx.core.UITextFormat;
import mx.core.mx_internal;
import mx.graphics.BitmapFillMode;
import mx.graphics.BitmapScaleMode;
import mx.styles.CSSStyleDeclaration;
