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

CSS overwrites user defined values

XMLWordPrintable

      SDK build 283 and up
      Nodes which are part of CSS styled component (let say default Caspian theme) get user defined values of properties overwritten by CSS template values.

      In this example size and type of font is completely ignored
      var scene=Scene {
              width: 500
              height: 500
      content: [
                              Group {
                                      content: [
                                              HBox
                                              {

                                                  content: [Button {
                                                          textAlignment: TextAlignment.CENTER
                                                          text: "AAAAAAA"
                                                          font: Font.font("Verdana",38)
                                                          cache: true
                                                          }]

                                               } ]
                                               }
                      ]

      }

      Stage {
          title: "Application title"
          scene:scene;
      };


            rbair Richard Bair (Inactive)
            lwaldmannjfx Lukas Waldmann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: