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

renderToImage doesn't layout nodes in scene

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.0.2, 7-pool
    • fx2.0
    • javafx
    • Product: javafx-2.0beta
      Platform: windows-i586
      Build-Number: 2463
      Build-ID: 2011-07-20_08-14-55

      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();

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

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

              Created:
              Updated:
              Resolved:
              Imported: