You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2013/11/13 17:58:25 UTC

git commit: [flex-asjs] [refs/heads/develop] - If this.positioner is unset when this.element is created, this.positioner is set to this.element. Fixes issues where a component does not implement its own createElement() function and relies on UIBase to do

Updated Branches:
  refs/heads/develop e19986a62 -> 81aacba94


If this.positioner is unset when this.element is created, this.positioner is set to this.element. Fixes issues where a component does not implement its own createElement() function and relies on UIBase to do it but requires that this.positioner is set (e.g., when positioning or sizing a component).


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/81aacba9
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/81aacba9
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/81aacba9

Branch: refs/heads/develop
Commit: 81aacba94cf96941eea4ca49c03be02954f052fa
Parents: e19986a
Author: Peter Ent <pe...@apache.org>
Authored: Wed Nov 13 11:58:15 2013 -0500
Committer: Peter Ent <pe...@apache.org>
Committed: Wed Nov 13 11:58:15 2013 -0500

----------------------------------------------------------------------
 frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/81aacba9/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
index a3846fb..0daf897 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
@@ -65,6 +65,8 @@ org.apache.flex.core.UIBase.prototype.internalChildren =
 org.apache.flex.core.UIBase.prototype.createElement = function() {
   if (this.element == null)
     this.element = document.createElement('div');
+  if (this.positioner == null)
+    this.positioner = this.element;
 
   return this.element;
 };