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

ButtonBar stop resizing when sum of childs width equals width of container

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.2 (Release)
    • None
    • mx: Button Bar
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Browser: Internet Explorer 7.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Add a ButtonBar component, set width to 100%
      2. Reduce width of application slowly until you reach the limit which allow complete display of label buttons
      3. Then reduce pixel by pixel until an horizontal scroll bar appears, then buttons stop reducing

      Actual Results:
      When the sizeof the container is exactly set to the sum of the button width, the buttons are not reduce anymore by next reducing and an horizontal scroll bar appears.
      You have to increase the width and then reducing fast (so you have less chance to fall on the critic value) to get a normal behaviour. No scroll bar and button width reduced with partial labels.

      I trace the code and found that in updateDisplayList method of ButtonBar, when local excessSpace is 0 then percentWidth of buttons is set to NaN. After that a scroll bar is displayed and no more call is made to updateDisplayList until width of container is increased and scroll bar disappeared...

      Expected Results:
      Same behaviour for any value of width container. Noscroll bar, buttons width reduced.

      Workaround (if any):
      Should be welcome...

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: