Some times i am not getting some properties of the actual bounds on visible event.
perfect condition is like this for adorn.actualBounds
- $: 330.15000000000003
- G: 895
- H: 52.80827490204163
- aa: 251.22
- u: false
But mostly i am getting this .
-
$: 330.15000000000003
-
G: 0
-
H: 0
-
aa: 251.22
-
u: false
function onVisible(adorn){ If(adorn.actualBounds.Top && adorn.actualBounds.Bottom){ //DoSome stuff with bounds //this code only runs once when the figure is droped from palette to diagram and after that on all selection events we don't get actual bounds when it is becoming visible. } } $(go.Node, "Spot", nodeStyle(), { selectionAdornmentTemplate: // custom selection adornment $(go.Adornment, "Spot", $(go.Placeholder), $(go.Shape, { geometryString: CustomFigures.SVGpath, alignment: go.Spot.Center, alignmentFocus: go.Spot.Left, stroke: "pink" }), new go.Binding("visible", "", onVisible).ofObject() ) },....