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

Unpredictable behaviour when trying to set negative scene width or height

    Details

      Description

      Testsuite name: JavaFXCompatibility manual
      Test name:graphics/api/scene/SizeTest.java
      JDK version: JDK8u65b07 (64bit)
      Platform: Mac10.10 x64, Ubuntu 15.04 (kwin)
      Platform-specific: no
      Reproducible: always

      Steps to reproduce:
      1. Execute attached sample
      2. Press button "Left" multiple times to shrink the window.
      Expected result:
      - Window shrinks until some minimal possible value and then refuses to resize or throws an exception
      Actual result:
      - Window shrinks to minimal size, then its becomes narrow, but with screen height, then it becomes expanded.

      Similar thing for Stage with negative width/height.
      Probably, that is an expected behavior and negative values are kind of special predefined values like USE_COMPUTED_SIZE/USE_PREF_SIZE, but there is nothing about it in Javadoc.

        Attachments

        1. SceneResizeFail.java
          1 kB
        2. SizeTest_begin.png
          SizeTest_begin.png
          95 kB
        3. SizeTest_end.png
          SizeTest_end.png
          94 kB
        4. SizeTest_smallest.png
          SizeTest_smallest.png
          85 kB

          Activity

            People

            • Assignee:
              nnigam Nancy Nigam
              Reporter:
              tolli Tony Li (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated: