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

[TextField] changes height, when custom font with css, and font with setter are set, and drops font, which is set.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 8
    • 8
    • javafx
    • 8.0b77

      The trouble is that height of control jumps, depending on actions, which you do, so I cannot write stable tests, which could check the borders of control. And control sometimes drops font.

      If you remove custom font setting via css, everything will work fine.

      Well, run the attached project twice. We will do 2 scenarios :

      Scenario 1 :

      Focus is on button initially.
      output : New height 20.798828125
      Click the button :
      output : New height 19.1533203125
      Move focus on the control (via mouse):
      output : New height 17.9533203125.

      Scenarion 2 :

      Move focus on control (click in it)
      output : New height 20.798828125
      Click Button
      output : New height 19.1533203125
      Click control again:
      output : New height 20.798828125
      also, at this moment font was dropped to the font, which is set in the css.

            akirov Alexander Kirov (Inactive)
            akirov Alexander Kirov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: