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

renderToImage doesn't layout nodes in scene

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0.2, 7-pool
    • Component/s: javafx
    • Environment:

      Product: javafx-2.0beta
      Platform: windows-i586
      Build-Number: 2463
      Build-ID: 2011-07-20_08-14-55

      Description

      Run the attached app. It renders Scene with StackPane which centers and autosizes nodes. However, layout is not done automatically.

      The workaround is to invoke layout() method explicitly prior renderToImage():

      scene.getRoot().layout();

        Attachments

        1. rendered.jpg
          rendered.jpg
          5 kB
        2. RenderToImageBug.java
          2 kB
        3. scene.jpg
          scene.jpg
          6 kB

          Issue Links

            Activity

              People

              Assignee:
              kprazdnikwse Kirill.Prazdnikov (Inactive)
              Reporter:
              mrkam Alexander Kuznetcov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: