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

Labeled control's text appears displaced when it is used as clip

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P4 P4
    • 8u20
    • fx1.2, fx2.0
    • javafx
    • Windows XP Prof, marina b06

      When a control which is labeled is used as clip, the text appears displaced. Text appears at the top relative to the 'box' which represents the control.

      To reproduce, run the below test. A CheckBox is used as clip.It could be seen that text is at the top relative to the CheckBox's box

      import javafx.scene.*;
      import javafx.stage.*;
      import javafx.scene.shape.*;
      import javafx.scene.control.*;

      Stage {
          scene: Scene {
              content: [Rectangle {
                  width: 200
                  height: 200
                  clip: CheckBox {
                      text: "CheckBox"
                      translateX: 30
                      translateY: 30
                  }
              /*}, CheckBox {
                  text: "CheckBox"
                  translateX: 30
                  translateY: 30*/
              }]
          }
      }

            jgiles Jonathan Giles
            gramachasunw Girish Ramachandran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: