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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Incomplete
    • Affects Version/s: fx1.2, fx2.0
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows XP Prof, marina b06

      Description

      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*/
              }]
          }
      }

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: