The key to success here is to ignore whatever is returned by the widget.getPreferredLocation() and only focus using the widget.getPreferredBounds().
As David (father of Visual Lib) nicely reminded me about we have the view/scene/local coordinates are described at:
but even though the coordinates are getting somehow mixed up and the only safe way is to ask for the getPreferredBounds() and than convert those to the Scene coordinate system.
No comments:
Post a Comment