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

Number of characters with images is wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Apache Flex 4.14.0
    • None
    • TLF
    • None

    Description

      Hi, I have a problem when I insert images in the text. When I get the text of the TLF the number of characters is wrong. It only counts the images that are displayed.

      I build a test code to see the problem.

      -----------------------------------------------------------------------------------------------
      I added 3 images, but getText() function only returns the last one.

      NOTE_1: If you uncomment [oController.verticalScrollPosition = 0;] line after adding the 3rd image, it returns the first two images.
      So, it seems getText() function only returns the images that have appeared on screen.

      NOTE_2: On the other hand, as you can see in the example, the [textLength] attribute returns one more character than [getText().length].

      Attachments

        1. Image.png
          0.6 kB
          goratz
        2. TLF_Bench_Images.as
          4 kB
          goratz
        3. TLF_Bench_Images.fla
          6 kB
          goratz

        Activity

          People

            Unassigned Unassigned
            goratz goratz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: