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

In MetalRootPaneUI, MetalRootLayout does not correctly calculate minimumsize

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b26
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      Name: jk109818 Date: 09/03/2003


      FULL PRODUCT VERSION :
      java version "1.4.2-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b19)
      Java HotSpot(TM) Client VM (build 1.4.2-beta-b19, mixed mode)

      FULL OS VERSION :
      Microsoft Windows [Version 5.2.3790]

      A DESCRIPTION OF THE PROBLEM :
      I'm working on a custom look and feel supporting Windows decoration. I had some problems with the minimum size calculation of the windows as the content pane minimum size was making the window bigger and bigger.

      but by looking at the MetalRootLayout code, I found the minimumLayoutSize method uses the width of the title pane in the height calculation:

        return new Dimension(Math.max(Math.max(cpWidth, mbWidth), tpWidth) + i.left + i.right,
                                       cpHeight + mbHeight + tpWidth + i.top + i.bottom);

      where it should use tpHeight instead.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      May not really be visible with Metal, but the bug is there.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Expected is to use tpHeight instead.


      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Incident Review ID: 200498)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              serb Sergey Bylokhov
              Reporter:
              jkimsunw Jeffrey Kim (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: