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

Setting verticalScrollPolicy on a Rich Text Editor causes dual vertical scrollbars to appear

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Later
    • Adobe Flex SDK 3.0 (Release)
    • None
    • mx: Rich Text Editor
    • 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
      }

      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: