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

Calculation of BorderLayout heights not correct

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: 1.1.3
    • Fix Version/s: 1.1.5
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.1.5
    • CPU:
      sparc
    • OS:
      solaris_2.5.1
    • Verification:
      Verified

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: