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

JavaFX Controls do not return their Bounds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • fx2.0
    • fx2.0
    • javafx

      * PROCEDURE
      Label l = new Label("bla");
      System.out.println(l.getBoundsInLocal());
      System.out.println(l.getBoundsInParent());

      * PROBLEM
      BoundingBox [minX:0.0, minY:0.0, minZ:0.0, width:-1.0, height:-1.0, depth:0.0, maxX:-1.0, maxY:-1.0, maxZ:0.0]
      BoundingBox [minX:0.0, minY:0.0, minZ:0.0, width:-1.0, height:-1.0, depth:0.0, maxX:-1.0, maxY:-1.0, maxZ:0.0]

      * COMMENT
      same happens with methos getWidth(), getHeight(), getMaxWidth, ...
      Although the controls are painted perfectly, there seems to be no way to retrieve their postions / bounds.

            jgiles Jonathan Giles
            mweidemanjfx Matthias Weidemann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: