Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7420

Group template not respecting toSpot property

$
0
0

@jpro wrote:

i just grabbed the latest version (1.7.21) to test some of your fixes and have discovered that my group template toSpot is no longer being used.

the group template specifies toSpot as go.Spot.LeftSide and worked in a previous version but now does not.

$(go.Group, "Auto", {
		selectable: false,
		isShadowed: true,
		shadowOffset: new go.Point(0, 1),
		shadowBlur: 5,
		shadowColor: "rgba(0, 0, 0, 0.34)",
		layout: $(go.GridLayout, {
			wrappingColumn: 1
		})},
	new go.Binding('isSubGraphExpanded', 'expanded'),

	$(go.Shape, "RoundedRectangle", {
			parameter1: 10,
			name: "SHAPE",
			portId: "",
			stretch: go.GraphObject.Fill,
			strokeWidth: 0,
			fromSpot: go.Spot.RightSide,
			toSpot: go.Spot.LeftSide,
			minSize: new go.Size(60, 0) },
	),

	// internal panel layer
	$(go.Panel, "Table", {
			shadowVisible: false,
			padding: new go.Margin(3, 5) },
		$(go.Picture, {
				row: 0,
				column: 0,
				source: imageSource,
				scale: 1 }
		),
		$(go.TextBlock, {
				row: 0,
				column: 1,
				margin: new go.Margin(0, 0, 0, 5) },
			new go.Binding('text', 'text')
		),
		$("SubGraphExpanderButton", {
				row: 0,
				column: 2,
				margin: new go.Margin(0, 5),
				minSize: new go.Size(18, 18)}
		),
		$(go.Placeholder, {
				row: 1,
				column: 0,
				columnSpan: 3,
				background: 'transparent',
				shadowVisible: false },
			new go.Binding('padding', 'isSubGraphExpanded', function(exp)
			{
				return exp ? 10 : 0;
			}).ofObject()
		)
	)
);

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7420

Trending Articles