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

[Linux] incorrect windows positioning.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx2.1
    • Fix Version/s: 7u6
    • Component/s: javafx
    • Environment:

      2.1.0b16.

      Description

      Run attached code:

      import javafx.application.Application;
      import javafx.scene.Group;
      import javafx.scene.Scene;
      import javafx.stage.Stage;

      public class CoordinatesIssue extends Application {

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

          @Override
          public void start(final Stage stage) throws Exception {
              stage.setX(0);
              prepareSourceStage(stage);

              Stage stageTarget = new Stage();
              stageTarget.setX(600);
              prepareTargetStage(stageTarget);
          }

          private void prepareTargetStage(Stage stageTarget) {
              stageTarget.setScene(new Scene(new Group(), 700, 700));
              stageTarget.show();
          }

          private void prepareSourceStage(final Stage stage) {
              stage.setScene(new Scene(new Group(), 600, 700));
              stage.show();
          }
      }

      I see both scenes in a such way, so their right borders are the same as the right border of the screen size.

        Attachments

          Activity

            People

            • Assignee:
              lnerad Ľubomír Nerád
              Reporter:
              akirov Alexander Kirov (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: