Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-19711

Window.title string is lost after window is close, reopen.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • Adobe Flex SDK Previous
    • Spark: Window
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. compile/run the test app with following code. it first opens/closes the window, it has title, status string set

      <?xml version="1.0" encoding="utf-8"?>
      <s:WindowedApplication xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:mx="library://ns.adobe.com/flex/halo"
      xmlns:local="*"
      creationComplete="openAWindow()"
      close="myWin.close()">
      <!-- test window is closed, set some properties, then reopen,
      verify properties are changed
      -->
      <fx:Script>
      <![CDATA[
      import spark.layouts.BasicLayout;
      import spark.components.Button;
      import spark.components.Window;
      import spark.components.CheckBox;
      public var myWin:Window=new Window();
      public function openAWindow():void

      { myWin.systemChrome="standard"; myWin.title="test window1"; myWin.status="this is a status, how are you?"; myWin.layout=new BasicLayout(); myWin.width=300; myWin.height=300; myWin.open(true); myWin.close(); }

      public function toggleWindow():void
      {
      if (check1.selected)

      { myWin.width=400; myWin.height=400; myWin.alwaysInFront=true; myWin.visible=true; if (myWin.closed) myWin.open(true); check1.label="window opened"; }

      else

      { if (!myWin.closed) myWin.close(); check1.label="window closed"; }

      }
      ]]
      >
      </fx:Script>

      <s:CheckBox id="check1" x="130" y="150" label="close" click="toggleWindow()" />
      </s:WindowedApplication>

      2. when windowedApplication shows up, select the checkbox" close", it will open the window.

      Actual Results:
      there is no title for the window.

      Expected Results:
      the title string should show up(same as status text string).

      Workaround (if any):

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: