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

All em font sizes applied to controls cause double effect

XMLWordPrintable

      Now that the control and skin have the same styleclass etc, any css rules that match one match both. This is normally ok execpt for font sizes in ems as they are relative to the parents font size. Eg you have a base font size of 16px on Windows and you have a css rule for a Label with 2em. The Label Control's font size will be 32px and the LabelSkin's font size will be 64px which will be what is used for the Text node inside the skin.

      This shows up in Ensemble where all the headers are now double size.

        1. Ensmeble-BIG-FONTS.png
          141 kB
          Jasper Potts
        2. FontBug.png
          34 kB
          Jasper Potts
        3. RT-16589
          2 kB
          David Grieve

            dgrieve David Grieve
            jasper Jasper Potts (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: