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

GridPane CSS layout with -fx-node-hpos and -fx-node-vpos does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • fx2.0
    • javafx
    • java.vendor=Sun Microsystems Inc.
      java.version=1.6.0_24
      java.vm.vendor=Sun Microsystems Inc.
      java.vm.version=19.1-b02
      os.name=Windows 7
      os.arch=x86
      os.version=6.1

      JavaFX 2.0ea b18

      I've a GridPane with a style class "form"

      gridPane.getStyleClass().add("form");

      and this style sheet information:

      .form {
        -fx-node-hpos: right;
        -fx-node-vpos: bottom;
        -fx-hgap: 20;
        -fx-vgap: 20;
      }

      If I switch to the style sheet the hgap and vgap works, but -fx-node-hpos and -fx-node-vpos has no effect.

        1. rt11742.css
          0.1 kB
          Anne Fowler
        2. RT11742.java
          2 kB
          Anne Fowler
        3. Screen shot 2011-03-11 at 2.26.20 PM.png
          18 kB
          Anne Fowler

            amfowler Anne Fowler (Inactive)
            arittnerjfx Aljoscha Rittner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: