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

tweetdeck notification window is shown as half empty now on linux, it requires changes in Window.as to work properly (as detailed in description)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK 3.4 (Release)
    • None
    • mx: Window
    • None
    • Affected OS(s): Linux
      Affected OS(s):
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      The app uses the mx.core.Window (not NativeWindow) object to show the Popups.

      When the height of the popup window is set (using window.height), in WIndow.as (http://wooster/u/code/FR/tools/FlexSDK3.2/frameworks/projects/airframework/src/mx/core/Window.as),
      it does not validate the request immediately, but changes a flag boundsChanged to true so that it could be validated in the next cycle.
      (Thus this request to change the height does not reach the platform code until next cycle.

      So If some one writes code of the form -

      1. win.height = 600;
      2. win.nativeWindow.visible = true;

      The first line would only cause just the internal variable boundsChanged and _bounds.height to be set.

      When the second line executes, it will cause nativeWindow_resize events to be fired. The code in Window.as has a handler for nativeWindow's
      resize event.

      In this again, the _bounds.height will be set, thus over writing the last bounds set via win.height call (in the first call). Thus the
      value passed "600" in the first call will be lost for ever.

      This is reproducible on Linux. Attaching a test case (mx_Window.air with code). This demonstrates this bug in "Window.as".

      Though this works on Windows, because when the nativeWindow is made visible, it cause activate event to fired before the resize event, thus
      an addtional cycle gets executed (before resize event is fired) and the height set in the previous call is not lost.

      Actual Results: Due to this behavior one of the major AIR application (TweetDeck), has notification issues on linux.

      Expected Results: It should work fine, like in earlier versions

      Workaround (if any):

      I have attached a zip file containing mxml file (showing the problem), an air file and a screenshot of the problem.

      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: