简体   繁体   中英

Add scroll bar to mat tab based on the content size

I have a cytoscape graph on a material tab. I have a button that makes graph larger. I would like to add a scroll bar when the graph is larger.

Here is the stackblitz: https://stackblitz.com/edit/angular-68qptm?file=src%2Fapp%2Fshow-customers%2Fshow-customers.component.html

Click on graph and click on large and you will graph becomes larger but I do not see any scroll bar in the x-axis.

I am trying to add scroll bar as the content becomes larger.

I don't know how you can add a scroll bar. I think it might be nasty to achieve such a thing because the size of the graph canvas stays the same when you zoom in/out or pan.

But I believe navigator extension might be useful.

Below is a small gif of how you can use navigator extension You can see that at the bottom left there is a small map or navigator. 在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM