JavaFX Controls do not return their Bounds

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • fx2.0
    • Affects Version/s: fx2.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported: