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

How to pin a diagram?

$
0
0

@itayh wrote:

Hi,

I want to pin a diagram + scroll the diagram with the mouse?
When the tree is expanded, the scrolling works fine, but when the tree is collapsed, the mouse will is moving the entire diagram.

collapsed (scrolling is bad):

expanded (scrolling is good):

This is the diagram definition:

  $(go.Diagram, "myTreeDiv",
    {
	  "panningTool.isEnabled": false,
      allowMove: false,
      allowCopy: false,
      allowZoom: false,
      allowDelete: false,
      allowHorizontalScroll: true,
      allowVerticalScroll: true,
      layout:
        $(go.TreeLayout,
          {
            alignment: go.TreeLayout.AlignmentStart,
            angle: 0,
            compaction: go.TreeLayout.CompactionNone,
            layerSpacing: 15,
            layerSpacingParentOverlap: 1,
            nodeIndent: 3,
            nodeIndentPastParent: 1,
            nodeSpacing: 5,
            setsPortSpot: false,
            setsChildPortSpot: false
          })
  });

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6972

Trending Articles