flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Judah Frangipane (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-22885) Add a new property that combines visible and includeInLayout into visibleInLayout in the UIComponent
Date Sat, 03 Mar 2018 22:20:00 GMT

     [ https://issues.apache.org/jira/browse/FLEX-22885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Judah Frangipane updated FLEX-22885:
------------------------------------
    Description: 
Create a new property that allows you to set both the visible and includeInLayout properties
at the same time.

*Steps to reproduce:*
 1.Add a component to the stage
 2.Set visibleInLayout to false to hide and exclude from layout
 3.Set visibleInLayout to true to show and include in layout

*Actual Results:*
 not created yet

*Expected Results:*
 when you set the property to true or false:
 2.Set visibleInLayout to false to hide and exclude from layout
 3.Set visibleInLayout to true to show and include in layout

*Workaround (if any):*
 Set visible to false and set includeInLayout to false.

*Notes:*
 In nearly every project I've worked on I see two lines of code for hiding and then excluding
from the layout. 

This new property would combine visible and layout into one line using one property.
{code:java}
// this code
mainContainer.visible=false;
mainContainer.includeInLayout=false;

// becomes
mainContainer.visibleInLayout=false;{code}
Without it you get code all throughout a project that looks like this:
{code:java}
mainContainer.visible=false;
mainContainer.includeInLayout=false;
loadingProgress.visible=true;
loadingProgress.includeInLayout=true;

private function onWallLoadingStop(event:NavigationEvents):void {
 loadingwallprogress.visible=false;
 loadingwallprogress.includeInLayout=false;

 if (event.str == "ActivityStream") {
  mainWallContainer.visible=false
  mainWallContainer.includeInLayout=false;
 }
 else {
  mainWallContainer.visible=true;   mainWallContainer.includeInLayout=true;
 }
}{code}
 

  was:
Create a new property that allows you to set both the visible and includeInLayout properties
at the same time.

*Steps to reproduce:*
 1.Add a component to the stage
 2.Set visibleInLayout to false to hide and exclude from layout
 3.Set visibleInLayout to true to show and include in layout

*Actual Results:*
 not created yet

*Expected Results:*
 when you set the property to true or false:
 2.Set visibleInLayout to false to hide and exclude from layout
 3.Set visibleInLayout to true to show and include in layout

*Workaround (if any):*
 Set visible to false and set includeInLayout to false.

*Notes:*
In nearly every project I've worked on I see two lines of code for hiding and then excluding
from the layout. 

This new property would combine visible and layout into one property. 

Without it you get code all throughout a project that looks like this:
{code:java}
mainContainer.visible=false;
mainContainer.includeInLayout=false;
loadingProgress.visible=true;
loadingProgress.includeInLayout=true;
private function onWallLoadingStop(event:NavigationEvents):void {
 loadingwallprogress.visible=false;
 loadingwallprogress.includeInLayout=false;

 if (event.str == "ActivityStream") {
  mainWallContainer.visible=false
  mainWallContainer.includeInLayout=false;
 }
 else {
  mainWallContainer.visible=true;   mainWallContainer.includeInLayout=true;
 }
}{code}
 


> Add a new property that combines visible and includeInLayout into visibleInLayout in
the UIComponent
> ----------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-22885
>                 URL: https://issues.apache.org/jira/browse/FLEX-22885
>             Project: Apache Flex
>          Issue Type: Improvement
>          Components: MXML Components
>    Affects Versions: Adobe Flex SDK 4.5 (Release)
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
>            Assignee: Adobe JIRA
>            Priority: Minor
>
> Create a new property that allows you to set both the visible and includeInLayout properties
at the same time.
> *Steps to reproduce:*
>  1.Add a component to the stage
>  2.Set visibleInLayout to false to hide and exclude from layout
>  3.Set visibleInLayout to true to show and include in layout
> *Actual Results:*
>  not created yet
> *Expected Results:*
>  when you set the property to true or false:
>  2.Set visibleInLayout to false to hide and exclude from layout
>  3.Set visibleInLayout to true to show and include in layout
> *Workaround (if any):*
>  Set visible to false and set includeInLayout to false.
> *Notes:*
>  In nearly every project I've worked on I see two lines of code for hiding and then excluding
from the layout. 
> This new property would combine visible and layout into one line using one property.
> {code:java}
> // this code
> mainContainer.visible=false;
> mainContainer.includeInLayout=false;
> // becomes
> mainContainer.visibleInLayout=false;{code}
> Without it you get code all throughout a project that looks like this:
> {code:java}
> mainContainer.visible=false;
> mainContainer.includeInLayout=false;
> loadingProgress.visible=true;
> loadingProgress.includeInLayout=true;
> private function onWallLoadingStop(event:NavigationEvents):void {
>  loadingwallprogress.visible=false;
>  loadingwallprogress.includeInLayout=false;
>  if (event.str == "ActivityStream") {
>   mainWallContainer.visible=false
>   mainWallContainer.includeInLayout=false;
>  }
>  else {
>   mainWallContainer.visible=true;   mainWallContainer.includeInLayout=true;
>  }
> }{code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message