cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
554
Views
0
Helpful
1
Replies

Where is defined constraints for the size of topology object?

iv093k@att.com
Level 1
Level 1

When trying to add small topology map to my Next demo, I've used following construct

var topo = new nx.graphic.Topology({

                    adaptive: true,

                    ...

html element where this object is attached has defined size:


style="width:100%; height:300px; border: 1px solid black;"

, but generated topo container have following attributes:


class="n-topology n-topology-blue" tabindex="0" style="width: 1906px; height: 500px;"


so there seems to be constraints regarding size of topology object. Adaptive sizing of height above 500px works well, so problem is seen only on height lower than 500px.


I've tried to search documentation, but unfortunately I'm not able to find anywhere if it's 'feature' or 'bug'.


Anyone could advice?


Thx in advance

1 Reply 1

aaikepae
Cisco Employee
Cisco Employee

Hi Ivo,

Sorry reply you late. There is a rule for topology's stage size, the default size is 500 * 500, and if you set the property 'padding' to 0, the min size 300* 300.

Abu

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: