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

Calculation of BorderLayout heights not correct

XMLWordPrintable

    • 1.1.5
    • sparc
    • solaris_2.5.1
    • Verified

        The calculation of BorderLayout element heights seems to have a roundoff error.

        To observe bug:

        1. Run the following on solaris:
        /usr/local/java/hjv1.1/solaris/bin/views
        2. Slide out bottom left sliding panel (yellow band), by slowly placing cursor on top of the yellow handle area.
        3. Observe the small gray band on the bottom left corner of the sliding panel.
        4. Slide in the sliding panel by moving cursor out of its window.
        5. Resize the main window by pulling the top resize border down.
        6. Repeat step 2-4. If the gray bar is still there, repeat step 5 then 2-4.

        It seems the gray is coming from the West component of the BorderLayout of the main window, which is probably caused by the height that is reported from a getSize() of the main window as being x for odd height values and x+1 for even height values. I think it might be some type of round-off error happening.

        See me for more info.

              pyoung Paul Young (Inactive)
              hinkmond Hinkmond Wong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: