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

Constructive criticism of Text implementation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • fx1.0
    • javafx

      The Text component has some weird issues that feel inconsistent with the rest of the core components.

      1. TextOrgin should be set to TextOrgin.TOP by default, not TextOrigin.BASELINE. It took me a while to understand why none of my layout calculations were working as expected. Likewise I've seen alot of code online from other developers that don't know they're working in BASELINE and just add the size of the font on to their translateY position values

      2. x and y values seem inconsistent or unecessary, either settle on translateX, translateY for all components or x,y values

            rbair Richard Bair (Inactive)
            schristmajfx Sean Christmann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: