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

Having multiline labels may trim lines other than the first ones under certain conditions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.0 (Release)
    • None
    • mx: Label
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Firefox 3.x
      Language Found: English

    Description

      Having multiline labels is a common requirement that Flex currently supports with the use of labels. However, under certain conditions, labels may be cut off and multiple lines can be removed in order to fit the text in a confined space.

      In order to reproduce this, create one horizontal line with several multiline elements within the category axis, and a reduced chart height. Even with styles such as canStagger="true" and canDropLabels="true", in some cases lines other than the first one for each label will be chopped off.

      This is not the only instance where this happens. Submitting a chart to different scale factors might also generate the same result. Combinations of different font sizes and adding a scale factor other than one to the chart might create this effect that will chop off labels to the chart. This might happen as well with the legend labels.

      I have added a sample MXML file where you can play with different scaling factors in two different charts with different size constraints. I tested the code with Flex 2, and the same happened back then. I would have logged it within the Data Visualization Components list, but it doesn't seem to be a charting specific issue, but something that comes from the labels.

      I have taken screenshots as well of different scaling factors, and how the issue is reproducible both in a .5, 1 and 2 scale factors. In all scenarios, both the category axis labels and the legend items are multiline labels

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: