Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个yfiles.canvas.Control, 里面有一些节点。然而,节点的数量越来越大,我需要添加一个滚动条以便垂直导航它们,尽管高度减小了。
yfiles.canvas.Control
我怎样才能做到这一点?我看到存在一个ScrollBar类,但我不知道如何集成它。
yFiles for HTML 带有内置的滚动条。您可以自定义它们的可见性,但默认情况下,只要内容矩形大于可见区域,它们就会显示出来。也许调用updateContentRect是您的代码中缺少的全部内容?