Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Later
-
Adobe Flex SDK 3.0 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Compile and run attached MXML file (or view SWF/screenshot)
Actual Results:
dual vertical scroll bars if content is too long
Expected Results:
I thought verticalScrollPolicy on the RichTextEditor would be a proxy for the underlying TextArea control's verticalScrollPolicy property.
Workaround (if any):
If you want to set the nested TextArea control's verticalScrollPolicy, you have to do it using ActionScript, instead of bindings or MXML. So, instead of this (current code in main.mxml):
private function toggleButtonBar_itemClick(evt:ItemClickEvent):void {
richTextEditor.verticalScrollPolicy = evt.item.label;
}
Do this:
private function toggleButtonBar_itemClick(evt:ItemClickEvent):void {
richTextEditor.textArea.verticalScrollPolicy = evt.item.label; // note that we added "textArea" in there
}