怎么使PanelExpanderButton右对齐

$1(go.Panel, “Table”,
$1(go.TextBlock,{
alignment: go.Spot.Center,
font: “bold 8pt Verdana, sans-serif”,
stroke:"#0033fe",
textAlign:“center”,
verticalAlignment : go.Spot.Center,//垂直对齐
},
new go.Binding(“text”, “readNum”)
),
$1(“PanelExpanderButton”, “COLLAPSIBLE”,{column: 1,})
)

You’ll need to stretch the Table Panel to occupy the whole width of the white area, perhaps with:

    stretch: go.GraphObject.Fill

or

    stretch: go.GraphObject.Horizontal

我看了IVR tree的那个例子,他是可以的,我这么设置却不可以,你建议我的那两个都试过了,也不行

他这个是起作用的,我也设置了,不起作用

No, you need to stretch the “Table” Panel to fill whatever space it is given by its containing Panel, which appears to be a “Vertical” Panel.

myDiagram.nodeTemplate =$1(go.Node,"Vertical",{
				selectionObjectName: "BODY",locationSpot: go.Spot.Left,/*"selectionAdorned":false,禁止出现矩形框*/selectionAdorned:false},
		       		$1(go.Panel, "Auto",{name: "BODY",},
		         		$1(go.Shape, "Rectangle",{fill:"white",stroke:"#4b957e",strokeWidth:4}
		         	),
		         	$1(go.Panel, "Vertical",
		           		$1(go.TextBlock,{stretch: go.GraphObject.Horizontal,
		             		verticalAlignment : go.Spot.Center,//垂直对齐
		             		font: "10pt Verdana, sans-serif",
		             		textAlign:"center",//居中对齐
		             		height:20,
		             		background:"#4b957e"
		             	},
		             	new go.Binding("text", "name")
		           	),
		           	$1(go.Panel, "Vertical",{
		           		stretch: go.GraphObject.Horizontal ,background:"white",padding:5,},
		             		$1(go.Panel, "Table",
		               			$1(go.TextBlock,{
		                 			font: "bold 8pt Verdana, sans-serif",
		                 			stroke:"#0033fe",
		                 			alignment: go.Spot.Center,
		                 			verticalAlignment : go.Spot.Center,//垂直对齐
		                 		},
		                  		new go.Binding("text", "readNum")
		               			),
		               			$1("PanelExpanderButton", "COLLAPSIBLE",{column: 1,alignment: go.Spot.Right})
		             		),
		             	$1(go.Panel, "Table",new go.Binding("itemArray", "actions"),{
		             		defaultAlignment: go.Spot.Left,
		             		name:"COLLAPSIBLE",
		             		background: "white",
		             		stretch: go.GraphObject.Horizontal,
		             		visible:false,//默认折叠
          					itemTemplate:
          						$1(go.Panel, "TableRow",
					              $1(go.TextBlock,new go.Binding("text", "name"),
					                { column: 0,alignment: go.Spot.Right,stroke:"#0033fe"}),
					              $1(go.TextBlock, new go.Binding("text", "value"),
					                { column: 1,alignment: go.Spot.Right,stroke:"#0033fe"}),
					              $1(go.TextBlock, new go.Binding("text", "unit"),
					              	{ column: 2,stroke:"#0033fe",}),
					              $1(go.TextBlock, new go.Binding("text", "none"),
					              	{ column: 3,}),
					              $1(go.TextBlock, new go.Binding("text", "none1"),
					              	{ column: 4,}),
					              $1(go.TextBlock, new go.Binding("text", "none2"),
					              	{ column: 5,}),
					              $1(go.TextBlock, new go.Binding("text", "none3"),
					              	{ column: 6,})
					            )
		               	}
		             )
		           )
		         ) 
		       )
		     );

请问在哪里拉伸表面板

谢谢,找到问题所在了