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

Container layout update incorrect/delayed when layoutNode is used

    Details

      Description

      Bug found in the JavaFX 1.2 release version

      If you create a subclass of Container and use the layoutNode(n, x, y, w, h) function, it can sometimes fall one frame behind in updating the layout. This includes an initially incorrect layout.

      I have attached a sample program that demonstrates this issue.

      Upon running the sample application all the ellipses will be offset up and to the left. Dragging the window frame fixes this and corrects the layout, but if you drag suddenly and stop you will notice that the ellipses are one frame behind in updating. I have attached a screenshot of the initial state where the layout is incorrect.

      One workaround is to use the alternate layoutNode function that contains the additional hpos and vpos default parameters. This function seems to work correctly in all cases.

        Attachments

          Activity

            People

            • Assignee:
              amfowler Anne Fowler (Inactive)
              Reporter:
              schin Stephen Chin (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: