Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
Adobe Flex SDK Previous
-
None
-
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>