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

Spark Border control should support clipAndEnableScrolling

    XMLWordPrintableJSON

Details

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

    Description

      Steps to reproduce:
      1. Compile and run attached file.

      Actual Results:
      Text isnt clipped and there isnt a clipAndEnableScrolling property.

      Expected Results:
      Clip me.

      Workaround (if any):
      Wrap the Border's contents in a Group and set clipAndEnableScrolling flag there, although it seems like a semi-redundant extra container just to clip content.


      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/halo">

      <s:Border id="brdr"
      width="160" height="120"
      horizontalCenter="0" verticalCenter="0"
      backgroundColor="red"
      backgroundAlpha="0.5">
      <s:Label id="lbl"
      text="The quick brown fox jumps over the lazy dog."
      fontSize="32"
      width="100%" />
      </s:Border>

      </s:Application>

      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: