You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2017/06/08 17:50:08 UTC

[1/4] git commit: [flex-asjs] [refs/heads/release0.8.0] - fix NS on JS

Repository: flex-asjs
Updated Branches:
  refs/heads/release0.8.0 f81ae0bf1 -> 287caa385


fix NS on JS


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

Branch: refs/heads/release0.8.0
Commit: 287caa38593fd69eb75331f6251fe33b76cc9a6c
Parents: 78f3ec5
Author: Alex Harui <ah...@apache.org>
Authored: Thu Jun 8 10:20:17 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Jun 8 10:20:57 2017 -0700

----------------------------------------------------------------------
 .../main/flex/org/apache/flex/html/beads/NumericStepperView.as    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/287caa38/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/NumericStepperView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/NumericStepperView.as b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/NumericStepperView.as
index 9d08d56..e86ad81 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/NumericStepperView.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/NumericStepperView.as
@@ -152,7 +152,8 @@ package org.apache.flex.html.beads
 			
 			input.x = 0;
 			input.y = 0;
-			input.width = UIBase(_strand).width-spinner.width-2;
+			if (!UIBase(_strand).isWidthSizedToContent())
+				input.width = UIBase(_strand).width-spinner.width-2;
 			
 			COMPILE::SWF
 			{


[3/4] git commit: [flex-asjs] [refs/heads/release0.8.0] - JS needed bindable metadata

Posted by ah...@apache.org.
JS needed bindable metadata


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

Branch: refs/heads/release0.8.0
Commit: 78f3ec5d4ac9414dc9c4239aaa300cf24ecfbf2a
Parents: be69e26
Author: Alex Harui <ah...@apache.org>
Authored: Thu Jun 8 09:36:41 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Jun 8 10:20:57 2017 -0700

----------------------------------------------------------------------
 .../projects/Basic/src/main/flex/org/apache/flex/html/CheckBox.as   | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/78f3ec5d/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/CheckBox.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/CheckBox.as b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/CheckBox.as
index d8e8568..eb1afbe 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/CheckBox.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/CheckBox.as
@@ -185,6 +185,7 @@ package org.apache.flex.html
             _label.childNodes.item(1).nodeValue = value;
         }
 
+        [Bindable("change")]
         public function get selected():Boolean
         {
             return (_icon.element as HTMLInputElement).checked;


[2/4] git commit: [flex-asjs] [refs/heads/release0.8.0] - JS needed bindable metadata

Posted by ah...@apache.org.
JS needed bindable metadata


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

Branch: refs/heads/release0.8.0
Commit: be69e26272a06a9d06d26ae854847bcf08f72ec6
Parents: 40bdeba
Author: Alex Harui <ah...@apache.org>
Authored: Thu Jun 8 09:36:21 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Jun 8 10:20:57 2017 -0700

----------------------------------------------------------------------
 .../projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as     | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/be69e262/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as b/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as
index 0142205..1db7e23 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as
@@ -783,6 +783,7 @@ package org.apache.flex.core
 				displayStyleForLayout = value;
 		}
         
+        [Bindable("visibleChanged")]
         COMPILE::JS
         public function get visible():Boolean
         {


[4/4] git commit: [flex-asjs] [refs/heads/release0.8.0] - try to be smarter about when to layout. FlexJSStore Panel TitleBar wasn't laying out at the right size because it would get a childResize when it was at is natural size, start laying out at that

Posted by ah...@apache.org.
try to be smarter about when to layout.  FlexJSStore Panel TitleBar wasn't laying out at the right size because it would get a childResize when it was at is natural size, start laying out at that natural size, then the parent Panel would try to layout TitleBar at correct width in response to Titlebar layout but it was blocked since TitleBar was already in layout at the wrong 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/40bdebae
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/40bdebae
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/40bdebae

Branch: refs/heads/release0.8.0
Commit: 40bdebae2d1003b71ace3d64770832a82f58bf4a
Parents: f81ae0b
Author: Alex Harui <ah...@apache.org>
Authored: Thu Jun 8 09:35:38 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Jun 8 10:20:57 2017 -0700

----------------------------------------------------------------------
 .../flex/org/apache/flex/core/LayoutBase.as     | 36 ++++++++++++++++++++
 1 file changed, 36 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/40bdebae/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/LayoutBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/LayoutBase.as b/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/LayoutBase.as
index 859add9..d575ee5 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/LayoutBase.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/LayoutBase.as
@@ -151,6 +151,42 @@ package org.apache.flex.core
 		 */
 		protected function childResizeHandler(event:Event):void
 		{
+			var viewBead:ILayoutHost;
+			
+			// don't layout in response to child size changes if sized by parent
+			// or explicitly sized
+			if (event.type == "widthChanged" && 
+				!(host.isWidthSizedToContent() || !isNaN(host.explicitWidth)))
+			{
+				// but do call this to update scrolling viewports
+				viewBead = (host as ILayoutParent).getLayoutHost();
+				viewBead.beforeLayout();
+				viewBead.afterLayout();
+				return;
+			}
+			// don't layout in response to child size changes if sized by parent
+			// or explicitly sized
+			if (event.type == "heightChanged" && 
+				!(host.isHeightSizedToContent() || !isNaN(host.explicitHeight)))
+			{
+				// but do call this to update scrolling viewports
+				viewBead = (host as ILayoutParent).getLayoutHost();
+				viewBead.beforeLayout();
+				viewBead.afterLayout();
+				return;
+			}
+			// don't layout in response to child size changes if sized by parent
+			// or explicitly sized
+			if (event.type == "sizeChanged" && 
+				!(host.isHeightSizedToContent() || !isNaN(host.explicitHeight)) &&
+				!(host.isWidthSizedToContent() || !isNaN(host.explicitWidth)))
+			{
+				// but do call this to update scrolling viewports
+				viewBead = (host as ILayoutParent).getLayoutHost();
+				viewBead.beforeLayout();
+				viewBead.afterLayout();
+				return;
+			}
 			performLayout();
 		}