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

Unpredictable behaviour when trying to set negative scene width or height

XMLWordPrintable

    • inapplicable
    • x86
    • os_x

      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.

        1. log-2.txt
          2 kB
          Tina Meng
        2. process_execution.log
          2 kB
          Tina Meng
        3. run-1.log
          14 kB
          Tina Meng
        4. SceneResizeFail.java
          1 kB
          Andrey Rusakov
        5. SizeTest_begin.png
          95 kB
          Tony Li
        6. SizeTest_end.png
          94 kB
          Tony Li
        7. SizeTest_smallest.png
          85 kB
          Tony Li

            mvs Manukumar V S
            tolli Tony Li (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: