@User uploaded a file:
LocalToScene example and commented:
@permalmberg - the second function above works for me. The first never works - don't know why. You must call the function AFTER the gridpane has layed out it's children otherwise it will report incorrect values.