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

Popups badly rendered in secondary retina monitor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • 9
    • 8u60
    • javafx
    • x86_64
    • windows_7

    Description

      FULL PRODUCT VERSION :
      java version "1.8.0_66"
      Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
      Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      OS X El Captain Version 10.11.3



      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Main monitor: Dell U2413
      Secondary monitor: Laptop retina display.

      A DESCRIPTION OF THE PROBLEM :
      All popups shown in the secondary retina display are shown with a wrong scale and are not functional.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Let a pop up appears in the secondary retina monitor.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Popup shown in the same way as shown in the other monitors.
      ACTUAL -
      Incorrect popup shown with incorrect behavior.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javafx.application.Application;
      import javafx.collections.FXCollections;
      import javafx.collections.ObservableList;
      import javafx.scene.Scene;
      import javafx.scene.control.ComboBox;
      import javafx.scene.control.Tooltip;
      import javafx.scene.layout.StackPane;
      import javafx.stage.Stage;

      public class ComboboxTest extends Application {
          
          @Override
          public void start(Stage primaryStage) {
              ObservableList<String> options = FXCollections.observableArrayList(
                  "Option 1",
                  "Option 2",
                  "Option 3"
              );
              ComboBox comboBox = new ComboBox(options);
              
              Tooltip.install(comboBox, new Tooltip("Hola mundo"));
              
              StackPane root = new StackPane();
              root.getChildren().add(comboBox);
              
              Scene scene = new Scene(root, 300, 250);
              
              primaryStage.setTitle("Hello World!");
              primaryStage.setScene(scene);
              primaryStage.show();
          }

          public static void main(String[] args) {
              launch(args);
          }
          
      }
      ---------- END SOURCE ----------

      Attachments

        Issue Links

          Activity

            People

              flar Jim Graham
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: