     {
         graphics.clear();
         
-        var borderWeight:int = getStyle("borderWeight"); 
+        var borderWeight:int;
         var borderStyle:String = getStyle("borderStyle");
         var borderVisible:Boolean = getStyle("borderVisible");
         var cornerRadius:Number = getStyle("cornerRadius");
-        
+                
         if (hostComponent && hostComponent.borderStroke)
-        {
             borderWeight = hostComponent.borderStroke.weight;
-        }
+        else
+            borderWeight = getStyle("borderWeight"); 
         
         if (!borderVisible)
             borderWeight = 0;

        insetPath = new Path();
        addElement(insetPath);
	}
    
	
    /**
     *  @private 

	private var bgRect:Rect;
    private var insetPath:Path;
    private var rds:RectangularDropShadow;
    
    //--------------------------------------------------------------------------
    //
    //  Overridden methods
