Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 6968

Overview box scale is not correct

$
0
0

@Demo_Ke wrote:

The overview box scale is very perfect in wpf version at our product. But in GOJS, the box scale is not correct when node is small number.
In wpf:


In GoJs:

The settings for overview is:
var myOverview =goMake(go.Overview, aOverViewDivID,
{
observed: myDiagram,
contentAlignment:go.Spot.Center
});

	function setupOverviewBox(aOverView) {
		var box = new go.Part();
		var s = new go.Shape();
		s.stroke = 'magenta';
		s.strokeWidth = 2;
		s.fill = 'transparent';
		s.name = 'BOXSHAPE';
		box.selectable = true;
		box.selectionObjectName = 'BOXSHAPE';
		box.locationObjectName = 'BOXSHAPE';
		box.resizeObjectName = 'BOXSHAPE';
		box.cursor = 'move';
		box.selectionAdorned = false;
		box.add(s);

		aOverView.box = box;
	}

Could you tell me what is wrong?
By the way the version is V1.7.5 is our current used

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6968

Trending Articles