Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8301762 | 8u381 | Kevin Rushforth | P3 | Resolved | Fixed | b01 |
JDK-8305230 | 8u371 | Ambarish Rapte | P3 | Resolved | Fixed | b31 |
JDK-8302848 | 8u361 | Ambarish Rapte | P3 | Closed | Fixed | b33 |
When using two displays, there are wrong positions of GUI elements at the intersection of 2 screens with different scaling.
Laptop 100%
Monitor 175%
Please find the attached image showing both the screens.
_____
Please run the following sample:
import javafx.application.Application;
import javafx.scene.*;
import javafx.scene.control.*;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class MenuApp extends Application {
public Parent createContent() {
VBox vbox = new VBox(20);
vbox.setPrefSize(300, 200);
final MenuBar menuBar = new MenuBar();
Menu m1 = new Menu("one");
m1.getItems().addAll(new MenuItem("111"), new MenuItem("222"));
Menu m2 = new Menu("two");
m2.getItems().addAll(new MenuItem("aaa"), new MenuItem("bbb"));
Menu menu = new Menu("menu");
menu.getItems().addAll(m1, m2);
menuBar.getMenus().addAll(menu);
vbox.getChildren().addAll(menuBar);
return vbox;
}
@Override
public void start(Stage primaryStage) throws Exception {
primaryStage.setScene(new Scene(createContent()));
primaryStage.show();
}
public static void main(String[] args) { launch(args); }
}
- backported by
-
JDK-8301762 Wrong position of Popup windows at the intersection of 2 screens
- Resolved
-
JDK-8305230 Wrong position of Popup windows at the intersection of 2 screens
- Resolved
-
JDK-8302848 Wrong position of Popup windows at the intersection of 2 screens
- Closed
- duplicates
-
JDK-8214207 JavaFX menu shows up in the wrong location when GUI spans HiDPI and non-HiDPI
- Closed
- relates to
-
JDK-8301386 Popup window position sometimes offset at intersection of 2 screens
- Open
-
JDK-8247839 Wrong position of GUI elements using multiple HiDPI displays in JavaFX 8
- Resolved
-
JDK-8199302 Menus offset on high res screens
- Closed