X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/source/Component3.html diff --git a/docs/source/Component3.html b/docs/source/Component3.html index c33d405f..74549452 100644 --- a/docs/source/Component3.html +++ b/docs/source/Component3.html @@ -1,4 +1,21 @@ -Sencha Documentation Project
/**
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
  * @class Ext.draw.Component
  * @extends Ext.Component
  *
@@ -60,7 +77,7 @@ Ext.define('Ext.draw.Component', {
 
     /* End Definitions */
 
-    /**
+    /**
      * @cfg {Array} enginePriority
      * Defines the priority order for which Surface implementation to use. The first
      * one supported by the current environment will be used.
@@ -71,20 +88,20 @@ Ext.define('Ext.draw.Component', {
 
     componentLayout: 'draw',
 
-    /**
+    /**
      * @cfg {Boolean} viewBox
      * Turn on view box support which will scale and position items in the draw component to fit to the component while
      * maintaining aspect ratio. Note that this scaling can override other sizing settings on yor items. Defaults to true.
      */
     viewBox: true,
 
-    /**
+    /**
      * @cfg {Boolean} autoSize
      * Turn on autoSize support which will set the bounding div's size to the natural size of the contents. Defaults to false.
      */
     autoSize: false,
     
-    /**
+    /**
      * @cfg {Array} gradients (optional) Define a set of gradients that can be used as `fill` property in sprites.
      * The gradients array is an array of objects with the following properties:
      *
@@ -150,7 +167,7 @@ Ext.define('Ext.draw.Component', {
         );
     },
 
-    /**
+    /**
      * @private
      *
      * Create the Surface on initial render
@@ -198,6 +215,7 @@ Ext.define('Ext.draw.Component', {
         }, true);
         if (me.rendered) {
             me.setSize(width, height);
+            me.surface.setSize(width, height);
         }
         else {
             me.surface.setSize(width, height);
@@ -205,7 +223,7 @@ Ext.define('Ext.draw.Component', {
         me.el.setSize(width, height);
     },
 
-    /**
+    /**
      * Create the Surface instance. Resolves the correct Surface implementation to
      * instantiate based on the 'enginePriority' config. Once the Surface instance is
      * created you can use the handle to that instance to add sprites. For example:
@@ -240,7 +258,7 @@ Ext.define('Ext.draw.Component', {
     },
 
 
-    /**
+    /**
      * @private
      * 
      * Clean up the Surface instance on component destruction
@@ -254,4 +272,6 @@ Ext.define('Ext.draw.Component', {
     }
 
 });
-
\ No newline at end of file +
+ +