cytoscape / enrichment-map-webapp

MIT License
6 stars 0 forks source link

Network zooms in when expanding a cluster that is partially offscreen #286

Closed chrtannus closed 5 months ago

chrtannus commented 6 months ago

To Reproduce Steps to reproduce the behavior:

  1. Zoom out the network a bit
  2. Move a collapsed cluster so that part of it is outside the viewport
  3. Click the Expand button on that cluster--the cluster expands and the network automatically pans and zooms on the cluster, which feels unnatural/unexpected.

expand-zoomin-bug

Expected behavior It should automatically pan (and even zoom out if necessary) so that the whole expanded cluster is visible, but it should never zoom in in this scenario.