昨天,今天,明天,每天的每天,你是否都多懂得一点点...

星期二, 十二月 18, 2018

Gojs Adornment position offset adjustment

I would like a selection Adornment displayed on the bottom of a node. So I used alignmentFocus: go.Spot.Bottom to achieve my goal. But what I have got is something like this:



The adornment is displayed on the bottom on the node, but inside, then align to the top, is outside.  How can I make the adornment outside?

Here is the solution.

Use the following code instead. This code will offset the Adornment by value of 20 along y axis.

alignmentFocus: new go.Spot(go.Spot.Bottom.x, go.Spot.Bottom.y, 0, 20),



Then I got the adornment position correct.




没有评论:

其它博客地址

此博客的同步博客地址: http://fengnz.wordpress.com
这里进入我的MSN SPACE.