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

Wrong unit measure in CornerRadiiConverter

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_8

      Backports

        Description

        FULL PRODUCT VERSION :
        java version "1.8.0_31"
        Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
        Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

        ADDITIONAL OS VERSION INFORMATION :
        Windows 8.1

        A DESCRIPTION OF THE PROBLEM :
        The class CornerRadiiConverter is converting wrong values when using css and the measurement unit "em", but only occurs when the font size is different from default. I'm working on a responsive design to college and this is an important part. Thank you for your help. The fix is simple, in the convert method in javafx.scene.layout.CornerRadiiConverter class, you need only pass the font as a parameter for the methods ".pixels ()" in constructor of the converted CornerRadii. Other conversion classes do this, but I believe this has been forgotten.


        REPRODUCIBILITY :
        This bug can be reproduced always.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jgiles Jonathan Giles
                Reporter:
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: