use change in label instead of change in data otherwise data change can happen 
before label has new size


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

Branch: refs/heads/core_js_to_as
Commit: 00f22de68ea5aa53d843721220f3a795963ec48b
Parents: e7c0235
Author: Alex Harui <[email protected]>
Authored: Thu Sep 10 14:11:29 2015 -0700
Committer: Alex Harui <[email protected]>
Committed: Thu Sep 10 14:14:18 2015 -0700

----------------------------------------------------------------------
 .../HTML/asjs/src/org/apache/flex/html/beads/TitleBarView.mxml     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/00f22de6/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/TitleBarView.mxml
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/TitleBarView.mxml
 
b/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/TitleBarView.mxml
index 3cad1f6..cebd24b 100644
--- 
a/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/TitleBarView.mxml
+++ 
b/frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/TitleBarView.mxml
@@ -44,7 +44,7 @@ limitations under the License.
     </fx:Script>
     <js:beads>
         <js:MXMLBeadViewBaseDataBinding />
-        <js:LayoutChangeNotifier 
watchedProperty="{ITitleBarModel(model).title}" />
+        <js:LayoutChangeNotifier watchedProperty="{titleLabel.text}" />
     </js:beads>
 
     <js:Label id="titleLabel" text="{ITitleBarModel(model).title}" >

Reply via email to