renderToImage doesn't layout nodes in scene

XMLWordPrintable

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

      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
          Alexander Kuznetcov
        2. rendered.jpg
          5 kB
          Alexander Kuznetcov
        3. scene.jpg
          6 kB
          Alexander Kuznetcov

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

              Created:
              Updated:
              Resolved:
              Imported: