another scenario that needs drawing

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

Branch: refs/heads/develop
Commit: 7de620afad5ce05dedb10762eaa2272b1d35b11f
Parents: 5734ef1
Author: Alex Harui <[email protected]>
Authored: Wed Apr 26 22:49:08 2017 -0700
Committer: Alex Harui <[email protected]>
Committed: Thu Apr 27 14:15:18 2017 -0700

----------------------------------------------------------------------
 .../flex/org/apache/flex/html/beads/TextInputWithBorderView.as  | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7de620af/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/TextInputWithBorderView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/TextInputWithBorderView.as
 
b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/TextInputWithBorderView.as
index fbab13e..5db680c 100644
--- 
a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/TextInputWithBorderView.as
+++ 
b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/TextInputWithBorderView.as
@@ -61,6 +61,11 @@ package org.apache.flex.html.beads
                        
             value.addBead(new (ValuesManager.valuesImpl.getValue(value, 
"iBackgroundBead")) as IBead);
                        value.addBead(new 
(ValuesManager.valuesImpl.getValue(value, "iBorderBead")) as IBead);
+                       
+                       // if we aren't going to get resized, draw the border 
now
+            var ilc:ILayoutChild = host as ILayoutChild;
+            if (ilc.isWidthSizedToContent() && !isNaN(ilc.explicitHeight))
+                               ilc.dispatchEvent(new Event("initComplete"));
                }
 
         /**

Reply via email to