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

MenuItem may cache the size and did not update it when the screen DPI is changed

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 11, 14, 15
    • 21
    • client-libs
    • b07
    • generic
    • generic

    Description

      In the test/jdk/javax/swing/GraphicsConfigNotifier/StalePreferredSize.java the next code was added to workaround this bug:
      if (component instanceof JMenuItem) {
      MenuItemLayoutHelper.clearUsedParentClientProperties((JMenuItem)component);
      }

      The MenuItemLayoutHelper.clearUsedParentClientProperties must be called automatically when the DPI was changed.

      Similar bug for other components:
      https://bugs.openjdk.java.net/browse/JDK-8201552

      Attachments

        Issue Links

          Activity

            People

              psadhukhan Prasanta Sadhukhan
              serb Sergey Bylokhov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: