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

Cannot update Callout position for size changes while open if horizontal and vertical positions are unchanged

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Next
    • None
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Other (specify version)
      Language Found: English

    Description

      Steps to reproduce:
      1. Run the attached FXP in ADL
      2. Go to ViewNavigator
      3. Click on the paint button in the top left
      4. Rotate orientation

      Actual Results:
      Callout appears after rotation.

      Expected Results:
      The example code resizes the Callout to fit the screen after CalloutButton fires an OPEN event. However, the Callout was already positioned based on the original size (which was too tall to fit the screen) then nudged upwards. The end result is a small callout completely above the top of the screen. Rotating the stage causes Callout to automatically reposition, but now with the updated size.

      The main problem is that while it's possible to set the size of a Callout before calling open(), it's not possible to do the same with a CalloutButton's callout.

      If we change SkinnablePopUpContainer's positionPopUp() to public, this allows users to re-position the Callout as they see fit.

      Workaround (if any):
      When resizing a callout in a CalloutButton, you must also reset position manually.
      Or...just use a Callout and don't use CalloutButton. Then, set the size before calling callout.open().

      Attachments

        Activity

          adobejira Adobe JIRA added a comment -

          Adobe Bug URL: http://bugs.adobe.com/jira/browse/SDK-31146
          Original Reporter: jasonsj
          Original Resolution: Fixed
          Discoverability: High
          Number of votes: 0
          Regression: No
          Reproducibility: Every Time
          Resolved by: jasonsj
          Severity: Enhancement/Task
          reporter: jasonsj

          adobejira Adobe JIRA added a comment - Adobe Bug URL: http://bugs.adobe.com/jira/browse/SDK-31146 Original Reporter: jasonsj Original Resolution: Fixed Discoverability: High Number of votes: 0 Regression: No Reproducibility: Every Time Resolved by: jasonsj Severity: Enhancement/Task reporter: jasonsj
          adobejira Adobe JIRA added a comment -

          created: 2011-08-11 12:26:14.000
          resolved: 2011-08-11 14:39:49.095
          updated: 2011-08-11 15:02:24.000

          adobejira Adobe JIRA added a comment - created: 2011-08-11 12:26:14.000 resolved: 2011-08-11 14:39:49.095 updated: 2011-08-11 15:02:24.000
          adobejira Adobe JIRA added a comment -

          On 2011-08-11 15:02:24.782 jasonsj commented:
          Retracting this enhancement request since the workarounds are straightforward and expected.

          adobejira Adobe JIRA added a comment - On 2011-08-11 15:02:24.782 jasonsj commented: Retracting this enhancement request since the workarounds are straightforward and expected.

          People

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

            Dates

              Created:
              Updated:
              Resolved: