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

`zoomToFit` called twice in a row causes slightly different zoom levels

$
0
0

@nikzb wrote:

I have a search feature that calls diagram.zoomToFit(); when a user submits a search query. This results in the whole diagram being visible. The strange thing is that if the user subsequently submits the same search query, calling diagram.zoomToFit(); again before making any manual changes to the zoom level, the diagram will zoom in a tiny bit more.

Any idea why calling zoomToFit twice in a row would cause slightly different zoom levels?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles