Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4064153

component height can't be greater than 32767

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Won't Fix
    • Affects Version/s: 1.1.3
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      other
    • OS:
      solaris_2.5.1

      Description

      I have a Canvas contained within a ScrollPane. The Canvas is very tall, over
      33000 pixels. I'm using the Canvas to display text which I render using
      the Canvas' paint() method. As I scroll the Canvas within the ScrollPane
      and scroll past position 32767, the damage rect I get back in the paint()
      method has a y-coordinate which is negative. Also, my blue Canvas also flakes
      out and either isn't as tall as it should be or it turns gray.


      Run the attached test case and scroll down. As you pass location 30000, it
      will start printing out the y-coordinate of the damage rect. Notice when it
      goes negative, and notice the Canvas within the ScrollPane. The color will
      also change from blue to gray.

      I tried overriding the Maximum size, since I saw that by default it is set to
      Short.MAX_VALUE but that didn't help. This bug is currently breaking one
      piece of functionality within HotJava Views, and has the potential to screw up
      at least 2 more. Hopefully there is a workaround that I'm missing.

        Attachments

          Activity

            People

            Assignee:
            jkoenigsunw Janet Koenig (Inactive)
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: