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

All em font sizes applied to controls cause double effect

    Details

      Description

      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.

        Attachments

        1. Ensmeble-BIG-FONTS.png
          Ensmeble-BIG-FONTS.png
          141 kB
        2. FontBug.png
          FontBug.png
          34 kB
        3. FontSizeBug.zip
          14 kB
        4. FontSizeBug2.zip
          15 kB
        5. RT-16589
          2 kB

          Issue Links

            Activity

              People

              • Assignee:
                dgrieve David Grieve
                Reporter:
                jasper Jasper Potts
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: