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

Add "margin" property to node and make it styleable from CSS

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8
    • javafx

      Margins are periodically used to help with layout. In some cases we have skins where Margins are hard coded. It is also a commonly used property in HTML CSS. Unfortunately, because margins are magic keys/values in the properties map of a node (and specified per-layout manager using static methods) this isn't possible to do from CSS. We should add a margins property and place it in the "Misc" properties of the node so as to not add overhead in the most common case where the node doesn't have any margin. The static methods on layout containers should set the margins on the node so as to be backwards compatible, and stop using the property map (which is probably as much overhead as inflating the Misc properties when needed).

            Unassigned Unassigned
            rbair Richard Bair (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Imported: