You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2020/03/11 05:42:59 UTC

[royale-asjs] branch develop updated: NS view now assumes that all sizeChange calls means that the size really did get set and are not sized to content. The only time the layout should be sized to content is if event is null as the view is initializing

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 170bd92  NS view now assumes that all sizeChange calls means that the size really did get set and are not sized to content.  The only time the layout should be sized to content is if event is null as the view is initializing
170bd92 is described below

commit 170bd92b6bbcb1b4d030aa189e23764af924f3cd
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Mar 10 22:42:43 2020 -0700

    NS view now assumes that all sizeChange calls means that the size really did get set and are not sized to content.  The only time the layout should be sized to content is if event is null as the view is initializing
---
 .../src/main/royale/org/apache/royale/html/beads/NumericStepperView.as  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/NumericStepperView.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/NumericStepperView.as
index 48c2aab..69074d6 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/NumericStepperView.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/NumericStepperView.as
@@ -155,7 +155,7 @@ package org.apache.royale.html.beads
 		private function sizeChangeHandler(event:Event) : void
 		{
 			// first reads
-			var widthToContent:Boolean = (_strand as UIBase).isWidthSizedToContent();
+			var widthToContent:Boolean = (event == null) && (_strand as UIBase).isWidthSizedToContent();
 			var inputWidth:Number = input.width;
 			var inputHeight:Number = input.height;
 			var strandWidth:Number;