ron
01/05/2017, 3:02 PMron
01/05/2017, 3:02 PMgtnarg
01/05/2017, 3:03 PMgtnarg
01/05/2017, 3:04 PMgtnarg
01/05/2017, 3:07 PMcarlw
01/05/2017, 3:08 PMgtnarg
01/05/2017, 3:08 PMgtnarg
01/05/2017, 3:09 PMedvin
01/05/2017, 3:59 PMEventTarget.add(type: KClass<T>, vararg params: Pair<String, Any>)
) is defined inside UIComponent
. In your test, you're not inside a UIComponent, hence you cannot call that function, you can only call the one defined outside, which requires a Node
as parameter.edvin
01/05/2017, 4:00 PMgtnarg
01/05/2017, 4:00 PMedvin
01/05/2017, 4:01 PMcomponent.add(find<Fragment1>().root)
, but that means add an instance of Fragment1 to my adhoc Fragment
, but that fragment already has a root node 🙂gtnarg
01/05/2017, 4:07 PMgtnarg
01/05/2017, 4:07 PMron
01/05/2017, 4:17 PMedvin
01/05/2017, 4:23 PMadd
actually.edvin
01/05/2017, 4:24 PMgtnarg
01/05/2017, 4:25 PMcarlw
01/05/2017, 4:39 PMpermalmberg
01/05/2017, 5:39 PMrectangle
that is placed in a GridPane?
fun getSceneRelativeCenter(): Point2D
{
val bounds = myConnectionPoint.boundsInLocal
return myConnectionPoint.localToScene( bounds.minX, bounds.minY )
}
In the above code minX and minY are aways 0, which is the same as 0,0 of the GridView itself.gtnarg
01/05/2017, 6:32 PMcarlw
01/05/2017, 6:33 PMcarlw
01/05/2017, 6:33 PMgtnarg
01/05/2017, 6:53 PMcarlw
01/05/2017, 6:56 PMcarlw
01/05/2017, 6:57 PMjchildress
01/05/2017, 7:04 PMgtnarg
01/05/2017, 7:04 PMcarlw
01/05/2017, 7:06 PMedvin
01/05/2017, 7:10 PM