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

Switching between scrollModes

$
0
0

@maciej wrote:

Hi,

I got a couple questions.

  1. I am currently switching between scrollMods from diagram.scrollMode= go.Diagram.InfiniteScroll to diagram.scrollMode= go.Diagram.DocumentScroll. After doing so the scrollbar does not show up until I actively scroll. It looks like the child of the <div> that is a sibling of the <canvas> has a width of 1px until I scroll. I deal with this by programmatically running diagram.scroll(‘pixel’, ‘right’, 1) then diagram.scroll(‘pixel’, ‘left’, 1), but it would be nice if I did not have to do that.

  2. It seems like when I change from DocumentScroll to InfiniteScroll the viewport jumps to position (0,0). Is there any way to avoid this? I have some other things going on at the same time, so maybe it does not have to do with the scroll mode being changed, but it seems like it is.

  3. Have ya’ll given any thought to providing an ID to the <canvas> and the <div> elements that GoJS creates so that users can use getElementById on them?

Thanks!

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles