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

Error tooltips may hide the target control if there is not enough room to the right of the control

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK 4.1 (Release)
    • None
    • Tooltip Manager
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:

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

      <s:BorderContainer width="100%"
      height="100%">
      <s:TextInput width="50"
      right="10"
      top="100"
      errorString="This tooltip has not enough room"/>
      </s:BorderContainer>
      </s:Application>

      Actual Results: The error tooltip hides the text input when it shows.

      Expected Results: The error tooltip should be repositioned when the tooltip is resized.

      Workaround (if any): Override the default ToolTipManagerImpl and call "positionTip()" when the tooltip resizes.

      public class CustomToolTipManager extends ToolTipManagerImpl implements IToolTipManager2
      {

      ...

      override public function set currentToolTip(value:IToolTip):void
      {
      if (_currentToolTip != null)

      { _currentToolTip.removeEventListener(ResizeEvent.RESIZE, onToolTipResize); }

      super.currentToolTip = value;
      if (_currentToolTip != null)

      { _currentToolTip.addEventListener(ResizeEvent.RESIZE, onToolTipResize); }

      }

      private function onToolTipResize(event:ResizeEvent):void

      { positionTip(); }

      }

      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: