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

Node.autosize() (and basically any layout) called on a layout Pane causes the pane layout to recompute

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • javafx

      When a layout Pane is autosized, it's setWidth/setHeight gets called, which in turn calls Region#widthChanged/heightChanged, causing requestLayout to be called on the Pane. This often invalidates many of the computations done when querying size hints before autosizing the layout.

      This probably also applies to any layout. The typical scenario is:

      1) get size hints - invoke (partial) computation of the layout
      2) resize/position - requestLayout called on the children
      3) layout child - the computations done in #1 are done again

            ekrejcir Eva Krejčířová (Inactive)
            msladecek Martin Sládeček
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: