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

[Linux, Modality] Windows are created not with proper height.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.1
    • fx2.1
    • javafx
    • 2.1.0b10
      JDK6

      Run attached application.

      To reproduce:
      1. In first stage click "Init".
      2. In the second click "Win"
      3. In the third click "App"
      4. In the fourth click "None"

      I see intersection of all windows. (every next is intersected with the previous one).

      I created this app for windows OS first, and it was written in a such way, so every new scene will not intersect with the previous. So I writed:
          private void changeStageSizes(){
              switch(renderType){
                  case LIST:
                      stage.setWidth(width);
                      stage.setHeight(height); // Look here
                      stage.setX(initialX + (counter-1));
                      stage.setY(initialY + (counter-1)*height); // and here
      //...
      counter++

      It works for winOS: windows don't intersect. that is not true for linux.

            tbrandal Tomáš Brandalík (Inactive)
            akirov Alexander Kirov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: